- git bare repository '/opt/games.git' not found on Storage Server or its not a bare repository

why do I always get this error even if I initialize the git repo with the command
git init --bare inside natasha storage server

This is how I did it. I run the code below without creating the directory for the repo. Git created it automatically.

cd /opt/ && git init --bare beta.git