git fetch origin master
git rebase -X theirs
theirs
means ours
in the case of a rebase (inverse of git merge).
Means the end of command options, after which only positional parameters are accepted.
Text and binary files will be created and commits are also moved with their author dates kept.
git log -p --pretty=email --binary --reverse > <patch-file>
git am --directory=<directory> <patch-file>
git rebase -i HEAD~5
Use vim to move commit