I have followed this tutorial here and made it to this line.
git remote add production demo@server_domain_or_IP:root
I have a bare repo setup on my remote server and I have verified the username and domain are correct because I use the same user name and domain ( I actually use the IP address ) to ssh into the account.
I have a simple directory name root
in the top level directory.
Yet I get this error.
fatal: not a git repository ...
What I tried
I tried changing the folder name to root.git
but this did nothing as I expected yet could not think of what else to try.
Research
Receiving "fatal: Not a git repository" when attempting to remote add a Git repo
I don't think this answer is correct, because a bare repo does not have a .git directory. You should not need a .git directory for a folder to be a repo ( It could be a bare repo ).