Which worked easier for me when I had the same problem, just delete duplicate .git and .git files.
The main parent folder of the project should contain 2 files (.git and .gitignore) + a folder named .git (this can be a hidden folder)
I duplicated these files in the next subfolder, which confused Github Desktop. So I just deleted all duplicated instances of these files that were in subfolders.
source share