Monday, February 8, 2021

Git sync branch to master

 When you want to synchronize topic branch with master 

1
2
3
4
git checkout master
git pull
git checkout dev-branch
git merge master

Then, when you are ready to merge topic branch into master
 
1
2
3
git checkout master
git merge dev-branch
git push origin master

No comments:

Post a Comment