Visual Studio 2013 GitHub
I sync sources to GitHub using Visual Studio 2013 with a particular account, but the following error when trying to come up with another account occurs.
An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error). Response status code does not Indicate success: 403 Forbidden).
- Mercurial .hgignore for Visual Studio 2013 projects
- Git - Visual Studio 2013 - Publish to VS Online
- Visual Studio 2013 - git checkout
- Is it possible to connect two visual studios to synchronize code with Git, with my online Visual Studio account?
- Disable automatic commit of changed files in Visual Studio 2013 to git
- An error was raised by libgit2. Category = 21 (MergeConflict)
Please someone you idea what it is?
4 Solutions collect form web for “Visual Studio 2013 GitHub”
You should use a HTTP debbuging proxy server (i.e. fiddler), and try to synchronize your commit with Visual Studio (Visual Studio Tools for Git extension). In my case I realized that I was logged with another git account and VS tries to login with that account (Request: Permission to repo/repo.git denied to UserX).
So I run ‘rundll32.exe keymgr.dll,KRShowKeyMgr’ and erase my credentials (maybe only update could works). When I tried to sync again, VS ask for credentials and everything works fine.
Check on your local project path the config file allocated in .git folder. It should be something like this:
[core] bare = false repositoryformatversion = 0 filemode = false symlinks = false ignorecase = true logallrefupdates = true [remote "origin"] url = https://github.com/aGitHubUser/aRepo.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
Equally, be sure, that you have permissions on the reopsitory on GitHub web.
I hope that it helps you. 😉
I receive this error typically in a team environment when my team leads ‘forgot’ to give me rights to the GitHub repos.
My one cent:
Add your second account as a collaborator to the repository. To add a collaborator, go to repository settings page -> collaborators.