git - How to replace N-number of Commit -
this question has answer here:
how can combine last 9 commits in github repository 1 commit?
git stash -u # save uncommitted changes git reset --soft head~9 # move 9 commits git commit # recommit them git stash pop # restore uncommitted changes to push result github, make sure local copy date before operation, , force it: git push -f.
Comments
Post a Comment