Wednesday, May 28, 2008

git checkout

This definitely falls in the duh! category:

If you delete a file and want to restore it to the trunk/master version, for subversion I would do:
svn update

to do the same with git:
git checkout <file>

Seems like this should have been obvious, but I guess I was expecting to find an update or restore or some other git method than checkout.

0 comments: