I've been using Visual Studio to work on my C++ coding. When I try to create a git repo the application crashes.
This issue is reproducible for me through the simple steps
- Create an empty project, call it Project, which now exists at C:\Users\name\source\repos\Project.
- Go to Create Git Repository, add a name, and hit create repository.
I noticed that the local repo path is default C:\Users\name, and it doesn't allow me to change this path. Looking at examples online the local repo path is always C:\Users\name\source\repos\Project. This could be involved with the issue.
Edit: The "crash" consists of Visual Studio freezing and eventually going unresponsive, during which time my PC is incredibly slow. Eventually the application goes unresponsive and I get the option to wait/restart/close. Also note that the repo does get created as I can see it on github.
C:\Users\name
? That is likely not a good place to put a Git repository, and I believe VS is probably creating the repo there and then runninggit status
which could take a while for huge folders.git init
in the directory you wish to create the repo. Then use VS to "Open Folder" and navigate to that folder and you'll be up and running.