


Once removed, run the command to push to your GitHub repo, e.g. Visual Studio handles the local and remote repository creation.

Use Git in Visual Studio Create and push new repos Take local code and push it to a new repository on GitHub in one step. So, youll have to first make sure that your local env is. Browse your GitHub repositories, and clone your repo down to your local machine to start committing and pushing. You may notice that some of these credentials are in fact using the GitHub user you do not want to authenticate with. VS Code just uses your environments git configuration when it commits and pushes to the remote repo. In order to resolve this, go into Windows and go to Control Panel, then search for the Credential Manager. In VS Code, I have signed in using the account I want:īut when I push, it thinks I am a different user, in this case, carldesouza – “e: Permission to carldesouzacom/my-linter-test.git denied to carldesouza.įatal: unable to access ‘’: The requested URL returned error: 403”: The remote branch I am trying to push to is on my account carldesouzacom:Īnd in Git in Windows, it thinks I am using a different user. In this post, we will look at what happens when you are trying to push from Visual Studio Code to a GitHub repo and the wrong user is being passed, thereby giving you the error that you do not have permission to post to this repository.
