Created
October 18, 2018 22:52
-
-
Save Tropicalrambler/5c979675aab9c7a3efcd3a8c3e60934d to your computer and use it in GitHub Desktop.
Shell command to avoid adding email and username on first git config and to store credentials entered once per session for multiple pushes
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 | |
# Change your email to your GitHub registered email | |
# Change your user to your GitHub registered username | |
git config --global user.email "[YOUR-EMAIL-HERE]" && git config --global user.name "[YOUR-USER-HERE]" && git config --global color.ui auto && git config --global credential.helper cache && git config --global credential.helper 'cache --timeout=604800' && git config --global core.editor "nano" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment