git-switch-profile/.git-switch-user

6 lines
214 B
Text
Raw Normal View History

2022-08-02 16:41:17 +02:00
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"
2022-08-02 16:33:53 +02:00
git config user.name = $name
git config user.email = $email