Relative Content

Tag Archive for gitvisual-studiogithub

How can I remove a git and github repository connection to a solution in Visual Studio 2022?

First of all, I should explain the mess I have gotten myself into in order to explain this issue. (This was a windows form application with .Net Framework version 4.7.2.) I had the idea while thinking outside of the proverbial box, that a shortcut to a problem I was facing was to make a complete copy of an entire project’s source code and rename the project a new name. All of the files with the previous project name were renamed to the name of the new project. Also, in all of the files, where this name appeared, was edited to be the name of the new project file.

adding git to visual Studio made original .sln file unusable

I have a working VS2022 Enterprise (NOT VSCODE) Solution on Windows 11-Pro. I wanted to add Source Control to it. MANY years ago, I had created a github account (DocDJ) which still holds an old repo. Using Github, I created a new private repo (M_exifier_threaded). I turned on Source Control (using git commands, becuse doing iy with VS fails) and after 3 days of attempts, got my existing solution folder initialized and pushed to my git repo. Along the way, I must have done “something”, that created a clone in an old local directory (“E:GIT-personal-reposDocDJ”).