Visual Studio - GIT - 5000 changes

Asked

Viewed 116 times

2

Guys, help me out...

Look at the image below, any kind of change it asks to go up to GIT...

How to remove this, can help me

inserir a descrição da imagem aqui

  • If you have changed folder permissions, try this: https://answall.com/q/131475/5878

1 answer

0

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

inserir a descrição da imagem aqui


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

inserir a descrição da imagem aqui


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.

inserir a descrição da imagem aqui


Now just give this command to remove the folder rm -rf .git

inserir a descrição da imagem aqui

This should remove the project tracking and your list will be clean again.

  • 1

    Thank you very much, it worked...

  • 1

    @Alexlopes glad it worked out! If my answer helped you in any way consider marking it as Accept, in this icon below the arrows on the left side of my answer :) so the site does not get open questions pending even though they have already been solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.