Remove credentials from Git

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

    Got same error when doing a 'git pull' and this is how I fixed it.

    1. Change repo to HTTPS
    2. Run command git config --system --unset credential.helper
    3. Run command git config --system --add credential.helper manager
    4. Test command git pull
    5. Enter credentials in the login window that pops up.
    6. Git pull completed successfully.

提交回复
热议问题