mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
adding gchid, a useful shorthand to change user.name and user.email
This commit is contained in:
parent
3841115f54
commit
b3fa2907dc
1 changed files with 6 additions and 0 deletions
|
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue