Re:Ask HN: Is version control worth learning early on?
by Bjoern on Thursday September 03, 2009 @01:54AM
(#801881)
Absolutely as soon as you start working with other people you will need this knowledge. I wouldn't learn SVN because you can interact with SVN via Git. (git-svn). To get startet:
Git on Windows, how to install and use it (or see below for Tortoise git)
Most interesting is for git is that "Branching" is very cheap. This means that if you want to implement feature X you just "branch" the repository (e.g. local or remote) and don't affect the main branch until you want to merge your code back into main.
Cloning:
---------
1.) Open e.g. Git Bash
2.) Go to the folder where you want to store the repository
Git on Windows, how to install and use it (or see below for Tortoise git)
http://www.gitcasts.com/posts/git-on-windows
Mov: http://media.gitcasts.com/c10-windows-git.mov.zip
If you use the Git GUI from Msysgit to clone a repo please use the following credentials: ...
Tortoise Git is a easy solution which is thought to integrate into e.g. Explorer etc. Please see here for details:
http://code.google.com/p/tortoisegit/ (first install msysgit then this..)
Linus Torvalds on Git (a more detailed introduction) http://www.youtube.com/watch?v=4XpnKHJAok8
Git usage: ----------
Most interesting is for git is that "Branching" is very cheap. This means that if you want to implement feature X you just "branch" the repository (e.g. local or remote) and don't affect the main branch until you want to merge your code back into main.
Cloning: ---------
1.) Open e.g. Git Bash
2.) Go to the folder where you want to store the repository
3.) git clone ssh://IP:PORT/REPONAME.git TARGETDIR
4.) It will ask you for your ssh key. (please see the above video (.mov) for details).
Later then you can test things by just changing something slightly and recommiting it, e.g.
1.) cd TARGET
2.) vi README
3.) git add *4.) git commit
Added some more 5.) git push Have fun !