Answers for "make both branch sync git"

2

git sync branch with master

git checkout master
git pull
git checkout mybranch
git merge master


# to keep mybranch in sync with master

# then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ...

git checkout master
git merge mybranch
git push origin master
Posted by: Guest on June-11-2020
0

sync two branches in git

// Main/ master branch.
$ git add .
$ git status                       // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin <branch>

// Branch that you want to sync with main/ master branch.
$ git checkout <another brash>     // go to <another branch> that is ment to be synced with <branch>
$ git rebase <branch>              // bring <another branch> up to date with <branch>
$ git push origin <another branch> // commit the changes
$ git checkout <branch>            // return to <branch>
Posted by: Guest on November-03-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language