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
Comments
Post a Comment