git checkout master
git pull origin master
git merge test
git push origin master
git checkout <branchname>
git merge master -m 'your message here'
git push origin <branchname>
- 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
git checkout feature1
git merge master
git checkout master
git pull
git checkout test
git merge master
git push
# ...develop some code...
$ git add –A
$ git commit –m "Some commit message"
$ git checkout master
Switched to branch 'master'
$ git merge new-branch
How to merge a branch?
#1 branchName - development
- push all the changes in your current branch
- until it shows ( Everything up-to-date )
#2 branchName - production
- goto your new branch where you wana merge the changes
- git checkout your_branch_name
- git merge development ( #1 branchName )
# DONE ✅
git checkout feature1
git merge master