Helps install and/or configure Git with good default settings, including:
- User information
- Simple branching
- Colors for command-line output
- Cross-platform line-ending compatibility
The script is safe to run even if you already have Git installed or have some of these settings in place already... it will only add those not previously set.
Currently only Mac and Linux are supported. To execute, run this from your Terminal:
bash <(curl -fsSL https://raw.githubusercontent.com/afeld/git-setup/master/setup.sh)
If you run into problems, run
uname -a
ssh -V
curl --version
openssl version
DEBUG=1 bash <(curl -fsSL https://raw.githubusercontent.com/afeld/git-setup/master/setup.sh)
and paste the output into a new issue.
For Windows setup, try GitHub for Windows, which comes preconfigured with all of the fixes in git-setup. Alternatives:
See other useful development environment setup projects: