Skip to content

Instantly share code, notes, and snippets.

@daneharrigan
Created October 30, 2014 18:45
Show Gist options
  • Save daneharrigan/33878e730c5ff326089f to your computer and use it in GitHub Desktop.
Save daneharrigan/33878e730c5ff326089f to your computer and use it in GitHub Desktop.
# 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