介绍版本控制软件git回滚的命令。
工具/原料
git
方法/步骤
2
暂时回滚到某版本git checkout 77e3873
3
回滚到主分支git checkout master
注意事项
如果遇到错误 “Your local changes to the following files would be overwritten by checkout:” 使用下面命令:git stash save file-name 然后再checkout主分支
上一篇:Git版本切换 回退实验