There are some important points to remember:
$ git checkout master Get to local copy $ git pull Bring it up to date $ git checkout feature/python Go back to your branch
You can then do the actual rebase:
$ git rebase master Now rebase your feature off of master
diff
command, the usage is ‘diff oldfile newfile’.
For ‘git diff’, the current branch takes the place of newfile, thus:
$ git checkout feature/python $ git diff master Compare master to current branch
or if merging:
$ git checkout master Checkout master $ git pull Update tracking branch $ git merge feature/python Merge changes into master