adding gchid, a useful shorthand to change user.name and user.email

This commit is contained in:
Alessio Biancalana 2015-12-05 19:09:47 +01:00
commit b3fa2907dc

View file

@ -224,3 +224,9 @@ alias gvt='git verify-tag'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"'
gchid() {
[[ -n $1 ]] && {git config user.name $1}
[[ -n $2 ]] && {git config user.email $2}
}