3

If I want to turn a local git repository into a regular (non versioned) folder what do I have to do?

I've had an SVN project before and in that case I had to delete an SVN folder from every directory. I've read git has one project folder but after some searching it sounds like there is more to it.

PS I do not want to export a repository because not all the contents are checked in.

1.21 gigawatts
  • 14,347
  • 30
  • 103
  • 209
  • 1
    The settings are a hidden folder called `.git` at the root of the repository. You can just delete this folder... or simply not use Git to commit anything. – Obsidian Age Jul 15 '19 at 23:51

1 Answers1

10

Just delete .git directory and it will be all.

Actually, as far as a file manager (windows file explorer or nautilus etc) is concerned, a git repo is just a directory. Nothing to do.

Edward Aung
  • 2,388
  • 9
  • 15