1,移除git add . 的内容 git reset HEAD 2,移除git commit 的内容(commit_A是文件名) git rebase -i commit_A 转载于:https://www.cnblogs.com/zph666/p/11130944.html