The strange problem that Visual Studio 2017 for Mac is connecting Git, just Git
VS for Mac encountered a strange problem when connecting Git, and the existing solution could not be bound and submitted to GitHub.
VS version 7.3.3
Recurrence
If you think there is a problem with your operations, create a project and test it. The "Use git" option is not checked during the creation,
By default, the root of the solution is selected for the newly created project. However, after the Version Control menu is opened, the Publish in Version Control... option is unavailable, as shown in,
It is gray except Checkout.
After trying many methods, I did not find the problem. I accidentally found that when I was elected to the lower project, this option was finally highlighted.
The Version Control menu is still shown in the figure when the solution is selected again? Do you need to "Activate" this way?
Add existing solutions to GitHub
First, create a new repositorie on GitHub.
Copy the Https address.
Select a solution in VS and click Version Control> Publish in Version Control. The pop-up form is as follows:
① Select the Registered Repositories Tab
② Click the Add button on the right.
③ Set a name
④ Paste the copied Https address.
Click OK.
Select the newly created GitHubTest and click OK again.