git checkout master git merge dev
The "master" branch and merge with the "dev" branch will be checked. Any applicable changes to "dev" will be in "master" after this command completes.
git checkout dev git merge master
It will check the "dev" branch and merge with the "master" branch. Any applicable changes to "master" will be in "dev" after the completion of this command.
See Basic Branching and Merging for more information.
source share