VisualStudio
VisualStudio copied to clipboard
Create a Git Repository Dialog Box creates a local repo but not a remote
Versions
- GitHub Extension for Visual Studio version: 2.11.106.19330
- Visual Studio version: Version 16.8.4
- I have Git for Windows; running
git --version
in Git Bash displays:git version 2.25.1.windows.1
What happened
The functionality that creates a new remote when using the Create a Git Repository appears to be broken.
Steps to Reproduce
Steps to reproduce the behavior:
- Created a new Console Application (.NET Framework) project,
MyConsoleApp
- In the Git Changes window, I clicked the Create Git Repository button.
- The Create a Git Repository dialog box appears. It showed my GitHub account and appeared to be connected to my account properly.
- I filled in the fields and specified a Public repository (I have a paid GitHub account, that allows Private repos).
- Clicked Push button.
- While a local repository was indeed created, no push operation was done.
- On GitHub, there was not a new remote repository listed under
Your repositories
when signed in. - No errors appeared on the screen or anything; it simply would not do the create remote/push step.
Expected behavior
A new local repo would be created along with a remote repo in my GitHub account, and then the source files pushed to the remote. The first part occurred; the creation of the remote did not occur.
Screenshots
Logs
When following the directions to create logs in VS, the issue went away after VS was restarted. But, I swear it happened! Must have been a spurious fault.
OK, now the issue has just come back. I existed VS, I deleted all my source files from disk and deleted the remote. Then I launched VS from my Taskbar shortcut that does not apply the /log
parameter, and now the Create a Git Repository dialog box again will not create the remote for me.
Aaaarrggghhhh....
Now, I have again, permanently deleted the local files on my computer for my repo, and I have done the steps over again, this time with devenv /log
having been invoked from the Developer Command Prompt for VS2019.
The issue has been reproduced successfully. Although I wonder...this time, I am naming my app GumballMachine
as opposed to MyConsoleApp
...do you think that makes a difference?
(In case It makes a difference...maybe the dialog is choking on a special character in my Description
of the repo, here is the content of that field; (C#/x86-64/Console App/VS2019) The book, "Head First Design Patterns," illustrates the State Pattern by means of a Gumball Machine application. They write the application in Java; we are doing it here in C#.
It's worked for other projects in the past, so I am not sure why it would not work now)
I am now going to try my steps once more with a Console App (.NET Framework) project named MyConsoleApp
once again and see if it makes a difference. I am using the text Junk repo
as the Description
of the repo.
Here's my Git Changes window after clicking Create and push in the dialog:
** RESULTS **
It created the local repo just fine, but no Push operation occurred. Clicking the Push button in the Git Changes window (as shown above) resulted in the Create a Git repository dialog being invoked again:
Clicking Push button dismisses the dialog box, and then nothing else happens.
The logs are attached. 16.0_0eae5245.zip
The behavior above shows that this issue now occurs no matter what the repo is named, nor does it seem to depend on the text in the Description
field.
Experiencing the same after updating VS 2019 to 16.8.5.