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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -