I think I have misconfigured something, When I do a git init --bare on /git/math-site.com in instead initializes the directory on an already existing git directory /git/science-site.com. Why does it initialize the repo on another directory?
Here’s the list of commands I did:
cd /git/math-site.com
git init --bare
Reinitialized existing Git repository in /git/science-site.com/
Edit: I tried deleting /git/science-site.com and /git/math-site.com and now a new errors arises.
mkdir /git/math-site.com && cd /git/math-site.com
git init --bare
fatal: GIT_WORK_TREE (or --work-tree=<directory>) not allowed without specifying GIT_DIR (or --git-dir=<directory>)
unset GIT_DIRand alsoGIT_WORK_TREEand try. Normally, you should not be manually setting that environment variable.