Skip to content

Instantly share code, notes, and snippets.

@hossman
Last active April 14, 2016 21:54
Show Gist options
  • Select an option

  • Save hossman/2da71b3f87e8f0504db1 to your computer and use it in GitHub Desktop.

Select an option

Save hossman/2da71b3f87e8f0504db1 to your computer and use it in GitHub Desktop.
Life got so much better once i added this to my bashrc: git_sanity
# git sanity
function sane_git {
if [[ $1 == "pull" ]]; then
echo "Don't be a schmuck!";
echo
echo "Use 'git fetch' and then merge/rebase as appropriate like a sane person."
echo
else
"`which git`" $@
fi
}
alias git=sane_git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment