How to remove cached credentials from Git?

前端 未结 5 1223
臣服心动
臣服心动 2021-01-30 20:43

I ran:

$ git config credential.helper store

And then:

$ git push origin master

After pushing, I entered my creden

5条回答
  •  灰色年华
    2021-01-30 20:52

    Your credentials are stored in the file you (or the thing using git credential-store) specified when you (or it) ran the command, as described in the documentation. The default is $HOME/.git-credentials. You should be able to open this file in your editor and edit it, or simply remove it entirely.

    Note that you may also want to change the credential helper so that these are not stored again. See the git credential-cache documentation as well, for instance.

提交回复
热议问题