Remove credentials from Git

后端 未结 30 1816
不知归路
不知归路 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条回答
  •  梦毁少年i
    2020-11-21 10:31

    What finally fixed this for me was to use GitHub desktop, go to repository settings, and remove user:pass@ from the repository url. Then, I attempted a push from the command line and was prompted for login credentials. After I put those in everything went back to normal. Both Visual Studio and command line are working, and of course, GitHub desktop.

    GitHub Desktop->Repository->Repository Settings->Remote tab

    Change Primary Remote Repository (origin) from:

    https://pork@muffins@github.com/MyProject/MyProject.git

    To:

    https://github.com/MyProject/MyProject.git

    Click "Save"

    Credentials will be cleared.

提交回复
热议问题