Marko Prelec

Rebase and Squash Branch

1. on “test” branch.
2. git rebase -i master (don’t pull at that point)
3. squash (if necessary solve the conflicts)
4. on “master” branch use git rebase test
5. git branch -D test
6. delete also remote branch git push origin --delete test

*replace “test” with your branch.

Author

Marko Prelec

I started working on the web in primary school. Since then, I have accumulated a lot of experience and always strive to write simple and efficient code. You can find more about me on Twitter.