问题
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