1

How can I unset the password associated my GIT repo's HTTPS remote? It has remembered it somewhere along the line and I would rather retype it on every push.

marlboroman
  • 71
  • 2
  • 10
  • What does `git config credential.helper` say? – John Zwinck Feb 17 '18 at 02:31
  • It returns the string "manager". – marlboroman Feb 17 '18 at 03:24
  • Then it looks like you are using this: https://github.com/Microsoft/Git-Credential-Manager-for-Windows - please try to check those docs and see if that's what you're using and how to use it. – John Zwinck Feb 17 '18 at 05:29
  • 1
    In case others follow the answer in the duplicate question (editing the .gitconfig file), but start getting Java GitConfigInvalid exceptions (invalid .gitconfig file) when creating new files in the repo, remember to have a blank line at the end of the .gitconfig after doing a $git config --global --edit – marlboroman Feb 26 '18 at 23:29

1 Answers1

6

See "Use Windows Credential Store for Git to remember your login for TFS, Bitbucket and such"

Since your credential.helper is "manager", you simply need to open the Windows Credential Manager and remove your credentials associated to your remote repo.

https://kwilson.io/blog/wp-content/uploads/2015/01/4-store.png

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250