If you have a git repository and a sub-folder inside it with another git repository (.git folder), you will get this message.

Have only one .git folder inside the repository for code management.