I really wanted a way to re-sync a fork with upstream, so this is it. Just put it in your path, and make sure that you have a remote called upstream
that points to the original project.
WARNING: For forks only. If you use it on a non-fork project, bad things will happen. This will re-write history, so be careful.