Squashing the merges



When you want to merge into master, sometimes you want to squash all your commits (for that branch), so that they appear as a single commit on master.
You will always go into master and pull the changes from the branch.
Here are the git commands for you to do it.
Say your bug fix branch is called fixedAllBugs and you want to merge it into master:
git checkout master
git merge --squash fixedAllBugs
git commit

Comments

Popular posts from this blog

The pesky scrollbars on Remote desktop - Finally fixed!!

Exploring RedCritter - website for Agile project mangement

API Testing with Rest Assured - Validating the json schema