Vs 2015 Git Publish Problem, Authorization Required1

Hamed Vaziri 136 Reputation points
2022-11-14T11:26:52.08+00:00

Hi
I've problem when i connect & want to publish my sample project to gitHub repo!
when i want to publish my project, vs asked me the credential account, after 2 time(s) that i entered my gitHub account, Facing the problem in team explorer :

Failed to publish the branch to the remote repository. See the Output window for more details.

Output window :

Error encountered while publishing branch to the remote repository: Response status code does not indicate success: 401 (Authorization Required).

Also i followed this link guide to install & upgrade my credential manager, but still i'm facing the sample problem!
Where is my problem & how to solve it?
Thanks in advance

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,871 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,351 Reputation points Microsoft Vendor
    2022-11-15T08:40:10.34+00:00

    Hi @Hamed Vaziri ,

    Welcome to Microsoft Q&A forum.

    The error message does say that the issue is caused by authorization. If this issue is not a potential issue, then you may need to check the authorization. I would suggest clean web browsers’ cache, remove Credential Manager and reset it then restart your machine(I know you have done this, but maybe try to restart machine?), check if you are using any proxy/antivirus/application which may block something, and try to install the latest VS 2015 Update package.

    And if it is possible, I think you can try to test this on another machine with VS 2015, and if the same issue appears, I recommend directly reporting this issue on GitHub, or adding comments in the thread that you shared.

    Sincerely,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  2. Hamed Vaziri 136 Reputation points
    2022-12-08T08:20:18.54+00:00

    Thanks @Tianyu Sun-MSFT
    I've installed Credential Manager and clear my cache & restart my machine but not worked!
    Also i've tested on several machine & it works fine!

    0 comments No comments