It can be easily implemented under git. Based on the hash of that commit you provided, you can run the following command:
git checkout 9efcb7c
After running this command, the index.html file at this time is the index.html file at the time of submission (9efcb7c). Then run git checkout master你就可以回到目前的提交状态。 注意,运行git checkout命令必须保证你当前没有未提交的修改,否则会提示你先将这些修改提交后才能checkout.
git show 9efcb7c:index.html
Just go back to this version and then reset it back
Most tools for or supporting Git can help you achieve this goal quickly, and the effect is also very intuitive. Such as SourceTree or major IDEs.
It can be easily implemented under git. Based on the hash of that commit you provided, you can run the following command:
After running this command, the index.html file at this time is the index.html file at the time of submission (9efcb7c). Then run
git checkout master
你就可以回到目前的提交状态。注意,运行
git checkout
命令必须保证你当前没有未提交的修改,否则会提示你先将这些修改提交后才能checkout
.