Last active
June 11, 2017 19:01
-
-
Save bertvv/df8e131338c1aedbf723 to your computer and use it in GitHub Desktop.
Initial setup of Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username='Johnny User' | |
email='[email protected]' | |
# 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