Reputation: 161
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?
Upvotes: 6
Views: 10147
Reputation: 708
I had this issue because I still had files created by a previous Git repository in the folder. Example below:
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).
Upvotes: 7
Reputation: 329
Take a look to this image:
Sometimes if you get into your local repository folder you will not get the .git folder so you need to make the hidden folders shown in the windows explorer in case you are using windows so buy deleting that folder the github desktop app or git bash or even visual studio wont show that warning again and you will be able to push that local repository to a new repository as you wish
Upvotes: 1