I have a remote folder that I am currently unable to push to. When I go directly to the remote directory and a do a ‘git status’ it reads:
fatal: Not a git repository
The .git folder does exists and it was working fine yesterday and nothing has changed since.
Can anyone tell me the reason(s) why I might receive this message even though the .git folder exists?
Thanks in advance for your help. Much appreciated!
If the permissions on the .git folder are fine, see that there is a file
.git/HEADexisting or is not named wrongly like.git/head. The presence of.git/HEAD( or HEAD in case of bare) is the secondary check for a git repository