github / VisualStudio

GitHub Extension for Visual Studio
https://visualstudio.github.com
MIT License
2.38k stars 1.2k forks source link

Following these instructions just leaves you with an empty repo #2507

Open kutuup opened 4 years ago

kutuup commented 4 years ago

Versions

What happened

Adding a solution to source control then hitting publish to GitHub under the sync menu creates a repo, but puts nothing in it.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to 'Sync'
  2. Click on 'Publish to GitHub'

Expected behavior

Solution is published to GitHub.

SpillSesh commented 4 years ago

I also have this problem (opens a repository, but doesn't sync project). (it does put a .gitattributes and a .gitignore file in there. but thats it) Also, when I open from Git, all I get are these files (no solution).

SpillSesh commented 4 years ago

Found the solution. VS won't let you sync/push to Github until you çommit (just 'sync' isn't enough). You need to go to Team Explorer>Changes. Enter a comment (literally anything) so the 'Commit All' button becomes selectable. Click it after you enter the comment. Then you go to Team Explorer>Sync, click sync and it should work. I think GitHub does this as some kind of revertable version control...