Search code examples
gitrepositorydirectoryhome-directory

Git - Git using my user folder as repository


Git is using my home-user folder as repository. Every time I open git gui I can see every file under C:\Users\Mitcoc\ Is this normal? If is it, how I can disable it without unistalling git?

Edit: Git installed by visual studio if that helps.


Solution

  • Git creates a directory .git in the directory where git is initialized. You can remove the .git/ directory to remove it from git control. There may also be a .gitignore file outside of that directory.