It is best to work on a side branch and follow the “merge
master/merge side” delivery procedure. The overall flow is defined here:
Here is refined set of commands, which details branch switch, and substitutes rebases on the side branch instead of merges:
1. Starting on local master, update from remote master then create a side branch
git pull origingit checkout -b JIRA-1122 origin/master
2. Now on side branch named JIRA-1122
Notice that I’ve told it to rebase
|
3. Back to local master branch
|
This updates your local master to mirror what the upstream master looks like.
4.
git mergeJIRA-1122
Your changes are merged onto master not the other way around:
git push origin master
5. You may now throw away the side branch.
git branch -dJIRA-1122