I’ve downloaded an open source code from Git repository. Now I want to revert to a previous version. How can I do that? There is a command like: “git revert , but I don’t know the hash of a version, say version 264 of the code
Best regards
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.
Would also list the last two tags SHA1. The second one would be the one you need for a git checkout to work (and revert the content of the repo to the previous label)
Once you have that SHA1, a
git describe --tags xxxwould translate said SHA1 into a tag label.