The force (push) is strong with this one...
Git is awesome. It’s not just open source, but in the last few years, with the help of sites like GitHub, it has cemented itself as the source control software for open source. At Maniacal Labs we use it for everything and the same goes at my day job with Red Hat. At the latter, I’ve found myself having to use the “push –force” option a lot recently due to some oddities with the way our code review process works (that’s a much longer post for another time) and of course the joke about it being a “force push”, as in Star Wars, came up a lot.
So, when I already happened to be looking into how to automate a few things with Git hooks recently I came up with a silly little hook that runs whenever you “force push” code up to the repo server. So, now, whenever I force push, I get a little message from Darth Vader himself:
Checkout the full git hook code with install instructions over on GitHub