Jump to content

Obsolete:Git tricks

From Wikitech

Sometimes you're using Git and you're like "Wow, that's a neat way to do that!" Add it to this list :)

Clone repo at a specific rev (like checkout -r in svn)

git clone <repourl> -b <remotebranch> <destdir> && cd <destdir> && git checkout [-b <tmpBranch>] <commitId>