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.
There is 0 error checking or confirmation.
Please, no one use this the way it is.
git fetch
andgit push
are simple commands you can master within a matter of minutes.