What if I want to save a commit say commit-1
but don;t want to push it and then after few commits,which I have pushed also, then I want to push that commit-1
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You want to reorder the local commits before pushing?
You can do that using git rebase --interactive
. Be sure to read about the pitfalls of using this, though. Used correctly it is very powerful.