Ads by Google

Monday, March 24, 2008

Using Git; more unlearning CVS

So, I trip up again when using git; Thinking that the commit works the same way as in CVS.

Of course it doesn't!

you need to do a git add and then follow it up with a git commit every time. In CVS, you need to do an add only when creating a new file. But in Git, every time the contents of the file changes you need to add before you commit.

A quick google check reveals that git tracks content not the file names. And this blogpost was even more clearer on how assuming things from other SCM versions will confuse you with Git.

To be honest, git does warn you about it and as usual, I took it to be background noise. :)