Requirements
- A JDK 1.6+
- Eclipse with EGit 2.2+
- A modern browser, with Javascript activated
Exercises
Exercises are available on:- RaspberryPi: http://192.168.42.1/index.html
- GitHub: http://ilaborie.github.io/Git--EGit-beginner-workshop
- On USB stick
Quizz
The quizz is available on HerokuSources are available on GitHub: https://github.com/ilaborie/EGit-Workshop-Quizz
Extra
Terminology
- master
- the repository’s main branch. Depending on the work flow it is the one people work on or the one where the integration happens
- remote
- these are “remote” locations of your repository, normally on some central server. SHA every commit or node in the Git tree is identified by a unique SHA key. You can use them in various commands in order to manipulate a specific node.
- head
- is a reference to the node to which our working space of the repository currently points.
- branch
- is just like in other VCS with the difference that a branch in Git is actually nothing more special than a particular label on a given node. It is not a physical copy of the files as in other popular VCS.
- clone
- copies an existing git repository, normally from some remote location to your local environment.
- commit
- submitting files to the repository (the local one); in other VCS it is often referred to as “checkin” fetch or pull is like “update” or “get latest” in other VCS. The difference between fetch and pull is that pull combines both, fetching the latest code from a remote repo as well as performs the merging.
- push
- is used to submit the code to a remote repository
SVN and Git
SVN | Git | |
---|---|---|
Workflow | one | lot's of |
Topology | centralized | distributed |
Branch & merge | painful | painless |
Speed | depend of you computer, the server and the network |
depend of you computer |
Commit modification | no | yes (with caution) |
Staging area | no | yes |
Offline mode | no | yes |
Lock | yes | no |
Fun | no | yes |