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

Where exactly is the "publish to gitHub" option in Team Explorer? #2413

Open
mortar-and-pestle opened this issue Sep 5, 2019 · 6 comments
Open

Comments

@mortar-and-pestle
Copy link

@mortar-and-pestle mortar-and-pestle commented Sep 5, 2019

I hope this is the proper place to ask this as I am new to gitHub and VS extensions. I am using VS 2019 and installed the VS extension. I am logged in and looking at the team explorer. I have my project open, connected with my gitHub, and a repository ready to go on my gitHub. On your website, the instruction states "In the Team Explorer window, click on the Sync tab to get to the Publish to GitHub dialog." However, I see no option on my screen as shown:

git

I know it's something obvious but I can't see the publish option under sync. Thanks for any help.

@Phat6
Copy link

@Phat6 Phat6 commented Sep 5, 2019

Just figured this out today myself, you need to select changes and add a comment, then commit all. Then select the home icon then sync is on that page, on the bottom you will see a outgoing commits, there is a push there.

@mortar-and-pestle
Copy link
Author

@mortar-and-pestle mortar-and-pestle commented Sep 6, 2019

Thanks. I found the commit. Issue is, it doesn't seem to be actually committing. I have a repository already made. So I opened up my project and followed your instructions. I committed and pushed. What showed up in my gitHub was...not my code. So I deleted it and attempted to do it again and now the commit button is greyed out. So I am not sure what to do here.
2

@Phat6
Copy link

@Phat6 Phat6 commented Sep 6, 2019

I am really new to Git and trying to figure this out myself. with that said from what I see in your screenshot you are working on Master, you should work on a branch unless this is the first check in. If this is your first check in go to one of your files and add a space or something because it now says you have no changes so you can't check in, you need a change to check in.

@mortar-and-pestle
Copy link
Author

@mortar-and-pestle mortar-and-pestle commented Sep 6, 2019

Yes I am still trying to commit to the master. I added a comment onto one of my files(saved and recompiled) and the commit button is still greyed out. I am thinking about switching to using git commands in the terminal. Thanks for your help though.

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Sep 13, 2019

Hi folks 👋

What you need to do first is Add to Source Control > Git.

image

You should then see the Publish to GitHub option.

image

In previous versions of Visual Studio, there was an option to automatically add to Source Control when creating a new project. Performing this step afterwards now seems to be the preferred way.

I don't know why Visual Studio shows the Incoming / Outgoing Commits sections when a project isn't in source control. I'd have expected it to show a section inviting the user to Add to Source Control. 😕

@daschult do you know if this is a known issue?

@daschult
Copy link
Collaborator

@daschult daschult commented Sep 13, 2019

I hadn't seen this issue before, but I think it's a great feature/bug request to ask for this to change. Please use the feature suggestion feature in Visual Studio to report this so that can consider the best way to improve this scenario!

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
4 participants
You can’t perform that action at this time.