1
0
Fork 0

git-config-user: show current config

This commit is contained in:
Adrien Abraham 2022-09-07 12:19:18 +02:00
parent cc6b56e7a7
commit ebf747e214

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# Quickly setup user name and email. # Quickly setup user name and email.
echo "Current name: $(git config user.name)"
echo "Current email: $(git config user.email)"
read -p "User name: " name read -p "User name: " name
git config user.name "$name" git config user.name "$name"
read -p "User email: " email read -p "User email: " email