28 May 2009

Checking out files from branches in Git

If you just need one file from a branch in git, you can grab it with checkout:

git checkout master path/to/file

It never occurred to me that this would work, because, frankly, it’s far too easy. Good work, Git.