Created
October 30, 2014 18:45
-
-
Save daneharrigan/33878e730c5ff326089f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: git push origin master --yolo | |
# | |
# Because you only live once | |
function git { | |
local GIT_CMD=`whereis git` | |
for x in $@; do | |
if [[ "$x" == "--yolo" ]]; then | |
GIT_CMD="$GIT_CMD --force" | |
else | |
GIT_CMD="$GIT_CMD $x" | |
fi | |
done | |
eval ${GIT_CMD} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment