Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (6 sloc) 242 Bytes
name=$1
email=$2
: ${name:="$(git log -1 --pretty=%an)"}
: ${email:="$(git log -1 --pretty=%ae)"}
[ -z $(git config user.name) ] && git config --global user.name $name
[ -z $(git config user.email) ] && git config --global user.email $email
You can’t perform that action at this time.