Retourner au contenu associé (entrée de forum : Comment créer un repo git centralisé)
Posté par 🚲 Tanguy Ortolo (site web personnel) le 10 octobre 2011 à 17:59. En réponse au message Comment créer un repo git centralisé. Évalué à 3.
Crée un utilisateur Unix pour chacun de tes utilisateurs. Crée un groupe Unix pour chaque projet. Crée un dépôt par projet et donne-le au groupe correspondant :
# adduser tintin # addgroup plop # adduser tintin plop # mkdir /srv/git # git init --bare --shared /srv/git/plop.git # chgrp -R plop /srv/git/plop
Et voilà, ton utilisateur tintin peut maintenant accéder en lecture–écriture à ssh://tintin@serveur/srv/git/plop.git.
tintin
ssh://tintin@serveur/srv/git/plop.git
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# SSH
Posté par 🚲 Tanguy Ortolo (site web personnel) . En réponse au message Comment créer un repo git centralisé. Évalué à 3.
Crée un utilisateur Unix pour chacun de tes utilisateurs. Crée un groupe Unix pour chaque projet. Crée un dépôt par projet et donne-le au groupe correspondant :
Et voilà, ton utilisateur
tintinpeut maintenant accéder en lecture–écriture àssh://tintin@serveur/srv/git/plop.git.