Last active
April 14, 2016 21:54
-
-
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
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
| # 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