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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -