git - Squash all commits into one -


i branched off of master build feature our website, branch has maybe 1,000 commits now, , don't want merge master. take head of branch , remove of other commits.

i tried doing rebase didn't seem work, still shows 1k(ish) commits.

git rebase -i dev-dashboard 

i squash commits , make head commit, merge master. how can done?

it seems should easier, started:

git checkout topic git reset master git checkout master git add . git commit -m 'over 1,000 fakie rebase squash!' git branch -d topic 

inspired this

git squash commits in branch without conflicting


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -