git combine two branches code example
Example: git merge local branch
// checkout the branch to merge INTO
git checkout master
// merge local feature branch into master branch
git merge feature_branch_name
// checkout the branch to merge INTO
git checkout master
// merge local feature branch into master branch
git merge feature_branch_name