我运行了命令“git reset”,但我的unstaged更改已放入文件夹中。我得到像下面这样运行git状态后: Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard
我有一个棘手的情况。我需要删除并重新提交一些我已经推送到github remote repo的提交。但是这些提交不再是HEAD(人们把它们推到顶端)。 我明白我可以恢复提交,因此保留提交历史记录。但要求是让错误承诺消失。 所以: D <- other people's commit
|
C <- B and C are wrong commits! They need to be remove