Skip to content

Instantly share code, notes, and snippets.

@BruceZu
Created December 15, 2016 18:14
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 BruceZu/2c0d31a7b2cfa3db8551193b0287f0d0 to your computer and use it in GitHub Desktop.
Save BruceZu/2c0d31a7b2cfa3db8551193b0287f0d0 to your computer and use it in GitHub Desktop.
Git asks for username everytime when git push via http
@BruceZu
Copy link
Author

BruceZu commented Dec 15, 2016

// go to the /path/to/git

$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

// next time you need not input username and password anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment