author: github.com/ravibhure
git fetch upstream && git checkout master && git rebase upstream/master
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
https://gist.github.com/ravibhure/a7e0918ff4937c9ea1c456698dcd58aa