Remove credentials from Git

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

    git config --list
    

    will show credential.helper = manager (this is on a windows machine)

    To disable this cached username/password for your current local git folder, simply enter

    git config credential.helper ""
    

    This way, git will prompt for password every time, ignoring what's saved inside "manager".

提交回复
热议问题