Gogs

Posted on sam. 24 novembre 2018 in Development

A painless self-hosted Git service.

Installation

apt install git openssh-server mariadb-server
adduser -md /home/git git
su git
cd ~
wget https://dl.gogs.io/0.11.4/linux_amd64.tar.gz
tar zxvf linux_amd64.tar.gz
cd gogs
./gogs web

Configuration

# vim /etc/systemd/system/gogs.service
[Unit]
Description=Gogs (Go Git Service)
After=syslog.target
After=network.target

[Service]
Type=simple
User=git
Group=git
WorkingDirectory=/home/git/gogs
ExecStart=/home/git/gogs/gogs web
Restart=always
Environment=USER=git HOME=/home/git

[Install]
WantedBy=multi-user.target
systemctl enable gogs
systemctl start gogs
systemctl status gogs

Transfert d'un dépôt SVN

https://subgit.com/download.html

.\subgit.bat configure "file://kermene.fr/partages/010-UIS000/190-Nicolas Le Gall/KerESB" git
.\subgit.bat install git