gitで複数のauthor, committerの使い分け
環境変数で設定すっと上書きしてくれる
% git config --help
user.email
Your email address to be recorded in any newly created commits. Can be overridden by the GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL, and EMAIL environment variables. See git-commit-tree(1).user.name
Your full name to be recorded in any newly created commits. Can be overridden by the GIT_AUTHOR_NAME and GIT_COMMITTER_NAME environment variables. See git-commit-tree(1).
.zshrc.local
export GIT_AUTHOR_NAME='foo' export GIT_AUTHOR_EMAIL='foo@example.com' export GIT_COMMITTER_NAME='foo' export GIT_COMMITTER_EMAIL='foo@example.com'
.zshrc
[ -f ~/.zshrc.local ] && source ~/.zshrc.local