Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GIT for Windows. All files have a question mark on the icon

I recently installed Git onto my Windows 7 laptop without really knowing what I was doing. The problem I have now is that all the files on my PC have the question mark icon on them as if they needed to committed to a repository.

How can I undo what ever it is that I have done, so that teh files no longer have the question mark icon over them?

like image 897
Kevin Bradshaw Avatar asked Oct 21 '12 17:10

Kevin Bradshaw


People also ask

What does a icon with a question mark mean?

When users need help, a question mark icon represents their state of confusion.

How do I view git files in Windows?

git folder can be viewed using the tree command in a Windows Operating System. To switch from the git bash terminal to Windows terminal, type the cmd command. The user is presented with the Windows terminal now.

How do I see hidden files in git?

Use the terminal to display the . git directory with the command ls -a . The ls command lists the current directory contents and by default will not show hidden files. If you pass it the -a flag, it will display hidden files.


2 Answers

I don’t use the shell extension, so I could be wrong about this, but I guess the question mark means that the file is untracked. As such it is not part of the repository and Git generally knows nothing about them.

So, you did not do anything, and that is exactly why they have the question mark: They are there, but not part of the repository. You can add them and commit the files and the question mark is probably gone (replaced with a checkmark or something) but of course that depends on what you actually want to do with them.

like image 164
poke Avatar answered Oct 16 '22 20:10

poke


i got the same problem. so i tried to find the root of git repository.

i found folder .git at C:\Users\UserName.

you just need to delete or rename it. and the question marks are gone.

like image 33
Thobari Ibnu Avatar answered Oct 16 '22 18:10

Thobari Ibnu