首先进行git版本回退
1、git log查找历史commit_id
git log
2、版本回退
git reset --hard commit_id
3、找回你的提交(commit), 因为Git对每件事都会有日志,且都会保存几天。
git reflog
4、选择你想要回到的提交(commit)的SHA,再重置一次:
git reset --hard commit_id
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。