Skip to content

Instantly share code, notes, and snippets.

View ainth's full-sized avatar

Allen Hebden ainth

View GitHub Profile
@ainth
ainth / git yolo with style
Last active March 21, 2022 20:43 — forked from joeblau/git yolo
git yolo command
alias gityolo='git commit -am "DEAL WITH IT 😎" && git push -f origin master'
@ainth
ainth / install-pre-push.sh
Last active September 3, 2015 15:01 — forked from stefansundin/install-pre-push.sh
Git pre-push hook to prevent force pushing the master branch.
#!/bin/sh
# This script will install a Git pre-push hook that prevents force pushing the master branch.
# Install in current Git repo:
# curl -fL https://goo.gl/TgTP60 | sh
# Uninstall:
# rm .git/hooks/pre-push
# in each repository that you've added this to.
GITROOT=`git rev-parse --show-toplevel 2> /dev/null`