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