I created a ClassLibrary and created a local Git from the Git menu...
Then I created a WinForm project and added the ClassLibrary (add project)...
But now if I try to create a local Git for my WinForm project, then it is already using the ClassLibrary's local Git...
How can I tell Visual Studio 2022 that I want to create a new local Git for the WinForm project?
Thanks
UPDATE - folder structure:
ClassLibrary structure:
WinForm structure:
.git
folder is (as that indicates the root of the git repo). Do you definitely need two different git repos at all? (Where possible, I try to keep everything that naturally fits within one solution in the same git repo. It makes it much easier to keep track of changes.)git init
within theWinFormsApp1
directory (the one containing WinFormsApp1.sln)? I'm not familiar with the granularity of VS's git support, but I'd strongly recommend that you make sure you've at least got the git command line tool available, even if you only need it occasionally.