Fatal: Not a git repository (or any parent up to mount point /discourse)

I tried it and succeeded at home
but
The method does not apply in the company.
The difference is …
discourse version…
my company is discourse ver 18.0