How to remove cached credentials from Git?

前端 未结 5 1177
臣服心动
臣服心动 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 21:06

    As he did not give any flag as global or local or system, it would take local by default, so the correct way is to move to the respective folder(repository) and type this command

    git config --local --unset credential.helper
    

    or

    git config --unset credential.helper
    

    Reference: https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config

提交回复
热议问题