Wiki
Frequently Asked Questions
About 1 min read
1.For commits made locally that you want to cancel directly
# 设置默认编辑器
git config --global core.editor vim
# 使用交互式rebase
git rebase -i HEAD~2
If I don't want to submit the add bishe anymore

The above figure can be modified to:
drop <hash1> add bishe
pick <hash2> update
Then after exiting the editor, it succeeded.