Enable GIT version control / fatal: Not a git repository

**CMK version:2.0.0p28 cee
**OS version:RHEL 7.9

Error message:
OMD[dev]:~/etc/check_mk$ git status
fatal: Not a git repository (or any parent up to mount point /opt/omd)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Hi,
I have enabled version control with GIT in my checkmk dev environment and now wanted to test this on the commandline. But there I get the following error messages.
What is this all about?

OMD[dev]:~/etc/check_mk$ git status
fatal: Not a git repository (or any parent up to mount point /opt/omd)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Do I have to restart checkmk, after enabling this feature?
What about a distributed environment, do I have to install git on every remote site or just on the primary site?

@kdeutsch Maybe you have an Idea, whats the problem here.
Thanks in advance
Christian

Okay, it seems to have solved itself :slight_smile:
After 2-3 activate changes it works now.
Sorry!

I think one “Activate changes” should suffice, but anyway.
You will need git on all distributed sites, however.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.