Skip to content

Instantly share code, notes, and snippets.

@ffan0811
Created September 2, 2020 15:33
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 ffan0811/67db401261c15ca01e6d83b7e3fb3aba to your computer and use it in GitHub Desktop.
Save ffan0811/67db401261c15ca01e6d83b7e3fb3aba to your computer and use it in GitHub Desktop.
Git commands

How to remember your username before you push on terminal

git config --global credential.https://github.com.username <your_username>

  • Check history git config --global --edit
  • Delete cache every an hour git config --global credential.helper 'cache --timeout=3600'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment