Skip to content

Instantly share code, notes, and snippets.

@danieldraper
Created June 9, 2015 00:24
Show Gist options
  • Save danieldraper/dabc2dd185bf04678577 to your computer and use it in GitHub Desktop.
Save danieldraper/dabc2dd185bf04678577 to your computer and use it in GitHub Desktop.
Change git author email per directory
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