gitgithub

"This directory appears to be a Git repository" error?


I tried to submit my Github Project to my account; however, when I tried to make a new repository to commit to my Github account, I encountered the following error:

https://i.sstatic.net/ACkWE.jpg

I believe this error is because I used my desktop username and it is stored as a repository somewhere (and I do not know where). Can anyone help troubleshoot what the issue is, and is there any other way to make a repository commit without moving the entire eclipse folder into a different location?


Solution

  • I had this issue because I still had files created by a previous Git repository in the folder. Example below:

    Github Screenshot

    I fixed this by deleting the files in the git folder. The git folder may initially be hidden, so you will have to fix this by showing hidden folders (right click in windows explorer and properties).