fatal: Not a git repository (or any of the parent directories): .git [duplicate]

This question already has answers here: fatal: Not a git repository (or any of the parent directories): .git Git: Receiving “fatal: Not a git repository” when attempting to remote add a Git repo

When I tried to push an existing repository on github.com, and it when I entered the command the website prompted me to put into the terminal, I got this error message fatal:

Not a git repository (or any of the parent directories): .git

If anyone could help me with this, then that would be great, thanks.

Leave a Comment