It often happens if you copy and paste folders and files into an existing repository.
Most likely the cause is the presence of a .git
folder in one of the sub-folders of your repository.
Removing the unwanted .git
folder should resolve the problem.