Remove credentials from Git

后端 未结 30 1792
不知归路
不知归路 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:35

    If you want git to forget old saved credentials and re-enter username and password, you can do that using below command:

    git credential-cache exit
    

    After running above command, if you try to push anything it will provide option to enter username and password.

提交回复
热议问题