Hi @Bryan Kelly ,
After checking and testing more, I think I can explain the issue that you got.
The complete actions and situations that you did and experienced in Visual Studio 2019 are correct and should be > by design. See this document for details: Create a local Git repo from a new solution/an existing solution.
When you created a local Git repo this three files/folders will be generated: .git, .gitattributes and .gitignore. So if you use the default path for initializing a local Git repo, the Git repo will be generated in your project folder and VS can recognize it and display correctly in the VS Solution Explorer. If you change to use a new empty folder as a local Git repo, then VS will not also copy your project/solution to this repo, so in the Solution Explorer you can only see this Folder View with this two files.
Indeed, I agree with you, it should be better to be possible to go back to your project and continue developing your codes. But currently this isn’t supported in VS 2019. You may try using the default folder as a local Git repo or coping your project/solution to this newly initialized Git repo(folder) to let VS recognize and display in VS Solution Explorer.
I also recommend you raise a suggestion ticket on Developer Community.
Best Regards,
Tianyu
- If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.