git-switch-profile/.git-switch-user
2022-08-02 16:41:17 +02:00

5 lines
214 B
Text
Executable file

name=$(git config -f ~/.git.d/$1 --get user.name )
email=$(git config -f ~/.git.d/$1 --get user.email )
echo "profile = $1 name = $name email = $email"
git config user.name = $name
git config user.email = $email