Based on @Sailesh and @DavidCulp:
(on branch development) $ git fetch origin master $ git merge FETCH_HEAD (resolve any merge conflicts if there are any) $ git checkout master $ git merge
The first command will make sure that you have all the upstream commits made to the remote wizard, with a Sailesh response that won't happen.
The second will merge and create conflicts that you can then resolve.
After that, you can finally place a wizard order to switch to the wizard.
Then you merge the development branch with the local wizard. The no-ff flag will create a commit node in master to track the entire merge.
After that, you can commit and click your merge.
This procedure ensures that people see the merge commit from development to the master, and if they go to see the development branch, they will see individual commits that you made in this branch during its development.
If you wish, you can change your merge commit before sending it, if you want to add a summary of what was done in the development branch.
EDIT: my original answer suggested git merge master which did nothing, it is better to do git merge FETCH_HEAD after fetching origin / master
Cisco
source share