Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git merge a branch to master/main

- git checkout master #change to master branch
- git pull origin master #update your master branch from GitHub
- git merge <branchname> -m "your message here" #merge a branch into master branch 
- git add . 
- git commit -m "final commit"
- git push origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #merge #branch
ADD COMMENT
Topic
Name
7+3 =