1. 使用git add 将修改过的a文件添加,但未提交。若要取消a文件的添加
git reset HEAD a
2.回滚代码到上一次提交
git reset --hard HEAD~1
1. 使用git add 将修改过的a文件添加,但未提交。若要取消a文件的添加
git reset HEAD a
2.回滚代码到上一次提交
git reset --hard HEAD~1
1584
1320
1279
4482
1513

被折叠的 条评论
为什么被折叠?