Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

merge / or squash /or combine multiple commits easily

# you are in a branch2 which has multiple commits which you want to combine into 1 
and merge into branch1

git rebase <branch_to_merge_into> -i

pick and squash the commits you want
Source by git-scm.com #
 
PREVIOUS NEXT
Tagged: #merge #squash #combine #multiple #commits #easily
ADD COMMENT
Topic
Name
8+1 =