2
Something similar happened to me, I accidentally gave a git add .
of everything I had on my desktop and all the files off to list Changes of Commit. I’ll explain to you how I solved.
First you have to find out the Root from where the accidental command was made. Because at the root of this folder you need to delete the Folder .git
For this you can do this way. Use the command
git rev-parse --show-toplevel
Notice the image I’m with the project Hi open, then I gave a cd imgs
entered the folder imgs, So when I give the command git rev-parse --show-toplevel
it shows who is the Folder Dad. That’s the one Folder that will be the folder .git
that you have to delete
Now note that the folder .git
by default is a hidden type file. Windows itself leaves this folder hidden, and even giving a dir
will not show the Folder .git
even though he was there
So to make sure the printer .git
is on the right track going in Windows Explorer and have it display the hidden folders. You will see something like this.
Now just give this command to remove the folder rm -rf .git
This should remove the project tracking and your list will be clean again.
If you have changed folder permissions, try this: https://answall.com/q/131475/5878
– Woss