Skip to content

Instantly share code, notes, and snippets.

@bertvv
Last active June 11, 2017 19:01
Show Gist options
  • Save bertvv/df8e131338c1aedbf723 to your computer and use it in GitHub Desktop.
Save bertvv/df8e131338c1aedbf723 to your computer and use it in GitHub Desktop.
Initial setup of Git
#!/bin/bash
username='Johnny User'
email='johnny.user@example.com'
# Set user's name and email
git config --global user.name ${username}
git config --global user.email ${email}
# Set default push behaviour (Git will issue a warning on each push when not set)
git config --global push.default simple
# Don't apply line endings of the local operating system, but keep those from the original upstream repository when cloning
git config --global core.autocrlf input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment