Last active
January 11, 2023 11:29
-
-
Save SepehrImanian/145d28ef1df8bb8a4525d2df2ca8742b to your computer and use it in GitHub Desktop.
Change git user in same repo in server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $1 = "sepehr" ]]; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "sepehrimanian" | |
echo "Change git user to 'Sepehr'" | |
elif [[ $1 = "ali" ]]; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "ali" | |
echo "Change git user to 'ali'" | |
elif [[ $1 = "status" ]]; then | |
git config --local user.email | |
git config --local user.name | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment