跳到正文

Wiki

常见问题

约 1 分钟阅读

1.commit到本地的想直接取消


# 设置默认编辑器
git config --global core.editor vim

# 使用交互式rebase
git rebase -i HEAD~2

若我不想提交add bishe了

可以将上图修改为:

drop <hash1> add bishe
pick <hash2> update

然后退出编辑器后就成功了。