Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

merge branch to master

#use new_branch
git fetch
git checkout new_branch
#add changes
git add .
#commit the changes
git commit -m 'some message'
#push to new branch
git push

#create pull request from git repo
#you can also merge from github/bitbucket using the merge button

#switch to master branch
git checkout master
#merge with new_branch
git merge new_branch
#push changes to master branch
git push
Source by alx-intranet.hbtn.io #
 
PREVIOUS NEXT
Tagged: #merge #branch #master
ADD COMMENT
Topic
Name
5+9 =