Created
June 9, 2015 00:24
-
-
Save danieldraper/dabc2dd185bf04678577 to your computer and use it in GitHub Desktop.
Change git author email per directory
This file contains 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
function git () { | |
case "$PWD"; in | |
/path/to/work/repos/*) | |
command git -c [email protected] "$@" | |
;; | |
*) | |
command git "$@" | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment