cannot see git branches and cant push commits in Visual Studio 2022

I recently connected a Git repository to my visual studio project and when I create a commit I do not get the option to push the commit to a remote repository.

I was able to push commits in the past on this same repository but now i cant even access my master branch on my local or remote repository.

I have tried checking the links to the remote repository but that didn’t work. i also tried reinstalling git on my computer.

Does anybody know how to fix this?

  • Remove Visual Studio from the equation by installing git and attempting to do what you just said, but from the command line. If the command line works then something else is going on. If it doesn’t work it most likely is how you are attaching to the remote.

    – 

Leave a Comment