Emacs vc-mode doesn’t support git push

So here’s a quick function to drop in your ~/.emacs (taken from here):