create a commit, save it, don;t push it than creat

2019-04-16 13:06发布

问题:

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.



标签: github commit