create a commit, save it, don;t push it than create some few more commits , push them than push the first commit

风格不统一 提交于 2019-12-09 23:53:40

问题


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.



来源:https://stackoverflow.com/questions/12159662/create-a-commit-save-it-dont-push-it-than-create-some-few-more-commits-push

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!