./git-cli/gitconfig_global.sh
Example daemon systemd configuration at file 'git-daemon/git-daemon.service'
[Unit]
Description=Start Git Daemon
[Service]
ExecStart=/usr/bin/git daemon --reuseaddr --base-path=/home/git/ /home/git/
Restart=always
RestartSec=500ms
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=git-daemon
User=git
Group=git
[Install]
WantedBy=multi-user.target
Copy file...
cp git-daemon/git-daemon.service /etc/systemd/system/git-daemon.service
systemctl enable git-daemon
systemctl start git-daemon
systemctl status git-daemon
...
We have installed daemon to watch '/home/git' path as service root
cd /home/git/project.git
touch git-daemon-export-ok
git clone git://localhost/project.git
go get usage for private repositories
git config --global url."[email protected]:".insteadOf "https://some.addr.com/"