Is there any git command to fetch an intermediate commit, just like ‘svn co -r xxx’ works? Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
git checkout <commit-id>, where<commit-id>is the SHA1 of a commit, a tag, or a branch.Note that in git vocabulary,
fetchrefers to connecting to a remote repository and grabbing its commits.