Skip to content

Instantly share code, notes, and snippets.

@jonjack
Last active October 10, 2018 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonjack/e33131b4dbb1740ad72465b96bdf06b1 to your computer and use it in GitHub Desktop.
Save jonjack/e33131b4dbb1740ad72465b96bdf06b1 to your computer and use it in GitHub Desktop.
Git configuration on Mac.

Set your global user details.

git config --global user.name "Your Name"
git config --global user.email your.email@elasticpath.com

Set your line feed settings.

git config --global core.autocrlf input

See the GitHub article on line endings for more information on why this is necessary.

Specify a default editor.

git config --global core.editor nano

Setup an access token for authenticating eg. if using 2FA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment