/git-setup

easy Git setup

Primary LanguageShellMIT LicenseMIT

Git Setup Script

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.

Installation

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)

Debugging

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.

Windows

For Windows setup, try GitHub for Windows, which comes preconfigured with all of the fixes in git-setup. Alternatives:

Resources

See other useful development environment setup projects: