GIT
“Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.” It was written by Linus Torvalds, the creator of Linux, for managing the Linux kernel sources.
The main difference with svn is that it is a distributed control version system: there is no distinction between repository
and work directory
. The repository is within any work directory. Therefore, many operation that used to deal with the remote svn repository server can be done locally even when your computer is not connected to the internet.
Notes
$ git branch * master
But there are other branches hiding in your repository! You can see these using the -a
flag:
</code>
$ git branch -a
* master
origin/HEAD origin/master origin/v1.0-stable origin/experimental
</code> If you just want to take a quick peek at an upstream branch, you can check it out directly:
$ git checkout origin/experimental
But if you want to work on that branch, you'll need to create a local tracking branch:
$ git checkout -b experimental origin/experimental $ git branch master * experimental