Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想保存一个提交commit-1但不想推送它,然后在几次提交之后,我也推送了,那么我想推送它commit-1怎么办?
commit-1
您想在推送之前重新排序本地提交吗?
您可以使用git rebase --interactive. 不过,请务必阅读有关使用此功能的陷阱。正确使用它非常强大。
git rebase --interactive