Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to push commit to GitHub through visual studio

I recently added github capabilities to Visual Studio. I started a new repo and hooked it up to VS. I have ssh authentication. I successfully did a first commit with the initial project.

Then, from visual studio, I branched the project. I made some changes and committed them.

For some reason, I cannot push them back to git. The push and pull buttons on VS are grayed out. According to the tutorial I should now be able to just push push and it will push (that's a lot of pushes... ha ha)

I've attached a screen clipping.

Anyone know what went wrong? I can log into github and see the repo, but the new branch isn't there and no changes are being registered.

enter image description here

like image 618
jcam77 Avatar asked Oct 20 '22 14:10

jcam77


1 Answers

Instead of using the SSH endpoint, configure your remote to use the https/ssl endpoint instead. Visual Studio, as of yet, doesn't support SSH endpoints due to license restrictions. You can do this by cloning the repository from that endpoint.

GitHub & SSL

Or if you have commits waiting to be pushed in your local repository, you can overwrite the remote uri.

like image 154
jessehouwing Avatar answered Oct 24 '22 11:10

jessehouwing