Created
September 7, 2017 04:33
-
-
Save munir131/557375a6bca1bc1cf0bb5b3f0d2a40d2 to your computer and use it in GitHub Desktop.
masquerade User
This file contains hidden or 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
if [ $1 = 'Munir' ] | |
then | |
rm -f /home/munir/.ssh/id_rsa* | |
cp /home/munir/.ssh-Munir/id_rsa* /home/munir/.ssh/ | |
git config --global user.name "Munir Khakhi" | |
git config --global user.email [email protected] | |
elif [ $1 = 'User' ] | |
then | |
rm -rf /home/munir/.ssh/id_rsa* | |
cp /home/munir/.ssh-User/id_rsa* /home/munir/.ssh/ | |
git config --global user.name "User" | |
git config --global user.email [email protected] | |
else | |
echo "Invalid User" | |
fi | |
ssh-add ~/.ssh/id_rsa | |
git config --list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment