1、撤销 add 添加:git rm -r --cached . (参考:https://www.cnblogs.com/wuchanming/p/5428897.html)

2、撤销 commit 提交:git commit --amend

posted on 2018-12-21 21:40  境艺  阅读(103)  评论(0)    收藏  举报