13.configure_git.sh 291 B

123456789101112
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. read -rp "Enter Git user email: " gitUserEmail
  7. git config --global user.email "$gitUserEmail"
  8. read -rp "Enter Git user name: " gitUserName
  9. git config --global user.name "$gitUserName"
  10. git config --global pull.rebase false