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?
When users need help, a question mark icon represents their state of confusion.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With