Created
November 2, 2018 11:09
-
-
Save naXa777/9f665c3b0ffcc019e985e0699e7f04af to your computer and use it in GitHub Desktop.
Git setup - initial configuration script for Ubuntu Linux
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 | |
apt install git unix2dos dos2unix --yes | |
git config --global core.autocrlf input | |
echo "Enter git user.name: " | |
read name | |
git config --global user.name "$name" | |
echo "Enter git user.email: " | |
read email | |
git config --global user.email "$email" | |
echo "Current git config:" | |
git config --global -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment