Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kutuup opened this issue May 1, 2020 · 2 comments
Open

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

kutuup opened this issue May 1, 2020 · 2 comments

Comments

@kutuup
Copy link

@kutuup kutuup commented May 1, 2020

Versions

  • GitHub Extension for Visual Studio version: …
  • Visual Studio version: … Community 2015

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
Copy link

@SpillSesh SpillSesh commented May 13, 2020

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
Copy link

@SpillSesh SpillSesh commented May 14, 2020

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.