- register modified and untracked files
git commit -m “commit message”
- In case, merge conflict appears
git mergetool --tool=opendiff
- Once merge is complete, save file and complete rebasing
resolve behind revisions
git checkout <local-branch>
E.g.
git checkout master
- See if it has now ahead/behind revisions differences status
- Resolve behind revisions
- Fetch all to update remote-branch in local cache
- Merge now remote branch to local branch (fast-forward)
git merge <remote-branch>
E.g.
git merge origin/master
In case, merge conflict appears
git mergetool --tool=opendiff
Once merge is complete, save file and complete rebasing