Skip to content

dzehv/gitconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Git configurations

Install client pretty settings

./git-cli/gitconfig_global.sh

Install git daemon service

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

Enable and start daemon at port 9418

systemctl enable git-daemon
systemctl start git-daemon
systemctl status git-daemon
...

Let daemon see bare repository (allow unauthenticated Git server-based access to)

We have installed daemon to watch '/home/git' path as service root

cd /home/git/project.git
touch git-daemon-export-ok

Example of local clone by git:// daemon's protocol

git clone git://localhost/project.git

Example configuring gitlabs usage for 'go get'

go get usage for private repositories

git config --global url."[email protected]:".insteadOf "https://some.addr.com/"

About

Script to apply basic pretty git settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages