How to remove a local Git repository from TortoiseGit?

Today I started messing around with Git. I think I did something wrong, because when I installed TortoiseGit it looks like many folders on my C and F (second section) have a green checkmark next to them (which means the file is complete? I I think?). What can I do to remove these ticks. Is there a way NOT to delete the actual files / folders, but only a file or two that tells Windows to add a green icon to the icon? I am a little afraid to work with such things on my C :. In other words - is there any way to cancel the "init" action ?! See image here http://i.stack.imgur.com/pKa1o.png

I'm new to git sorry for not a professional vocab in this matter. Thanks.

+6
source share
3 answers

I don't know about TortoiseGit, but the git init command simply creates a (hidden) .git directory in the root directory of the repository and populates it with the necessary files. Therefore, to cancel init, you need to delete this .git directory. Please note that some files in this directory may be write protected, so a warning dialog may appear. Also note that all commits made by you in this repository will be lost (which should not be a problem in your case).

However, I don't know if this works or is enough when using TortoiseGit ...

+16
source

Delete the .git folder in your repository.

+1
source

open git bash and run the command below

$ rm -rf.git

-1
source

Source: https://habr.com/ru/post/913789/


All Articles