Launch a Git daemon for the specified directory, verbosely printing log messages and allowing Git clients to write to it

git daemon

git daemon {{path/to/directory}} --enable=receive-pack --informative-errors --verbose

click the source code to copy install git daemon on any operating system with command-not-found.com