Skip to content

Instantly share code, notes, and snippets.

View dnf's full-sized avatar
💠
Eventually Consistent

Don Neufeld dnf

💠
Eventually Consistent
View GitHub Profile
@dnf
dnf / git-shove
Created November 15, 2013 21:50
Implementation of git shove we use at Medium
#!/bin/sh
if [ "master" = "$(git rev-parse --abbrev-ref HEAD)" ] ; then
echo "\033[1;31mYou may not shove master\033[0m"
exit 1;
fi
exec git push --force origin HEAD