Skip to content

Instantly share code, notes, and snippets.

@naXa777
Created November 2, 2018 11:09
Show Gist options
  • Save naXa777/9f665c3b0ffcc019e985e0699e7f04af to your computer and use it in GitHub Desktop.
Save naXa777/9f665c3b0ffcc019e985e0699e7f04af to your computer and use it in GitHub Desktop.
Git setup - initial configuration script for Ubuntu Linux
#!/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