git-config-user: show current config
This commit is contained in:
parent
cc6b56e7a7
commit
ebf747e214
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue