Skip to content

Instantly share code, notes, and snippets.

@Tropicalrambler
Created October 18, 2018 22:52
Show Gist options
  • Save Tropicalrambler/5c979675aab9c7a3efcd3a8c3e60934d to your computer and use it in GitHub Desktop.
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
#!/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