Wiki
常见问题
About 1 min read
An English translation is not available yet. The latest Simplified Chinese source is shown without triggering paid translation.
1.commit到本地的想直接取消
# 设置默认编辑器
git config --global core.editor vim
# 使用交互式rebase
git rebase -i HEAD~2
若我不想提交add bishe了

可以将上图修改为:
drop <hash1> add bishe
pick <hash2> update
然后退出编辑器后就成功了。