摘要: 一、git回滚代码 1、本地代码没有提交到暂存区git checkout -- file2、本地代码已经提交到暂存区git reset HEAD file //把文件从暂存区撤回到工作区git checkout -- file //再把工作区文件回滚3、已经commit到版本库的代码git rese 阅读全文
posted @ 2016-10-19 17:48 hi_felix 阅读(95) 评论(0) 推荐(0) 编辑