Remove credentials from Git

后端 未结 30 1710
不知归路
不知归路 2020-11-21 10:13

I\'m working with several repositories, but lately I was just working in our internal one and all was great.

Today I had to commit and push code into other one, but

30条回答
  •  被撕碎了的回忆
    2020-11-21 10:33

    I found something that worked for me. When I wrote my comment to the OP I had failed to check the system config file:

    git config --system -l
    

    shows a

    credential.helper=!github --credentials
    

    line. I unset it with

    git config --system --unset credential.helper
    

    and now the credentials are forgotten.

提交回复
热议问题