Git bare repository - result indicates failed but all steps were done

Error:

  • git bare repository ‘/opt/demo.git’ not found on Storage Server or its not a bare repository

Steps done:
Initialized empty Git repository in /opt/demo.git/
[natasha@ststor01 ~]$ ls -F /opt/demo.git
HEAD config description hooks/ info/ objects/ refs/
[natasha@ststor01 ~]$ ls -ld /opt/demo.git
drwxr-xr-x 6 root root 4096 Feb 4 01:04 /opt/demo.git
[natasha@ststor01 ~]$ sudo chown -R natasha:natasha /opt/demo.git
[natasha@ststor01 ~]$ ls -ld /opt/demo.git
drwxr-xr-x 6 natasha natasha 4096 Feb 4 01:04 /opt/demo.git
[natasha@ststor01 ~]$

Please tell me the full name of the lab. It’s possible that you’re supposed to do the lab as root, in which case you should not be changing the ownership of the files to user natasha. But to be sure, I need to know what lab you’re running, so I can run it myself.

Yep – you should not reassign the files to user natasha:

Thanks. It worked now.