1

I created a "Projects" folder where I have all my web dev projects. I used git init on the folder before creating subfolders, which I also used the git init command for.

Now I want to treat them independently. How do I un-init the "Projects" folder that houses the other folders where my projects are?

jub0bs
  • 60,866
  • 25
  • 183
  • 186

3 Answers3

3

Just delete the .git folder in the folder where init was called.

Karthik
  • 929
  • 2
  • 12
  • 24
1

AFAIK, git doesn't have an "uninit" command. You could, however, just remove the .git folder that git init created. E.g., in *nix systems:

~/Projects$ rm -rf .git
Mureinik
  • 297,002
  • 52
  • 306
  • 350
0

Using windows command line requires rmdir and other syntax:

rmdir /s .git

C:\Users\username\Projects> rmdir /s .git

Windows cmd line code to remove a directory, which in this case is the errantly placed - and hidden - git directory. Hidden directories start with a period (".") as shown above.

Add /s to allow removal despite the directory having sub-files and/or sub-directories.