gitでディレクトリごとでアカウントを使い分ける
code:.gitconfig
# workフォルダの時会社用gitアカウントに切り替え
includeIf "gitdir:~/project/work/"
path = ~/.gitconfig-work
# otherフォルダの時は個人用アカウントを使用する
includeIf "gitdir:~/project/other/"
path = ~/.gitconfig-other
code:.gitconfig-other
user
email = xxx@examaple.com
name = name
#git