3 ms·
I use the following aliases in my ~/.zshrc file: alias workgit="git config user.name 'full name' && git config user.email 'karan@org.tld'" alias persgit="g
by mr-karan 3y ago
I use the following aliases in my ~/.zshrc file:
alias workgit="git config user.name 'full name' && git config user.email 'karan@org.tld'"
alias persgit="git config user.name 'full name' && git config user.email 'karan@my.email'"
I prefer this because there are some overlapping directories in my filesystem and don't want to automatically use another git identity just based on file paths. Works well enough for my usecase.