git - fetch an intermediate commit
Is ther开发者_StackOverflowe any git command to fetch an intermediate commit, just like 'svn co -r xxx' works? Thanks!
git checkout <commit-id>
, where <commit-id>
is the SHA1 of a commit, a tag, or a branch.
Note that in git vocabulary, fetch
refers to connecting to a remote repository and grabbing its commits.
精彩评论