Skip to content

Instantly share code, notes, and snippets.

View danieldraper's full-sized avatar

Daniel Draper danieldraper

View GitHub Profile
@danieldraper
danieldraper / bash_profile
Created June 9, 2015 00:24
Change git author email per directory
function git () {
case "$PWD"; in
/path/to/work/repos/*)
command git -c user.email=you@work.com "$@"
;;
*)
command git "$@"
;;
esac
}