Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I convert a git repository folder into a regular folder?

Tags:

git

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.

like image 279
1.21 gigawatts Avatar asked May 09 '26 07:05

1.21 gigawatts


1 Answers

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.

like image 98
Edward Aung Avatar answered May 12 '26 11:05

Edward Aung



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!