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

8 lines
267 B
Plaintext
Raw Normal View History

2022-08-02 15:07:34 +00:00
#!/bin/bash
profile=$1
name=$(git config -f ~/.git.d/$profile --get user.name )
email=$(git config -f ~/.git.d/$profile --get user.email )
echo "profile = $profile name = $name email = $email"
git config --local user.name $name
git config --local user.email $email