Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git squash commits merge

# Say your bug fix branch is called bugfix and you want to merge it into master
git checkout master
git merge --squash bugfix
git commit

# This will take all the commits from the bugfix branch, 
# squash them into 1 commit, 
# and merge it with your master branch.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #squash #commits #merge
ADD COMMENT
Topic
Name
9+4 =