Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia | ||
| tech:git:server [02/03/2021 06:26] – creat mate | tech:git:server [09/03/2021 00:37] (actual) – [seguridad] mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| = git repo server | = git repo server | ||
| - | [[https:// | ||
| - | == crear repositorio bare | + | == seguridad |
| + | === protocolos | ||
| + | [[https:// | ||
| + | * local | ||
| + | * http(s) | ||
| + | * Smart HTTP | ||
| + | * Dumb HTTP | ||
| + | * ssh | ||
| + | * git | ||
| + | |||
| + | === ssh | ||
| + | * **git-shell** | ||
| + | * '' | ||
| + | * **/ | ||
| + | Match User git | ||
| + | ForceCommand / | ||
| + | AllowTCPForwarding no | ||
| + | X11Forwarding no | ||
| + | </ | ||
| + | * **gitlab-ce**:< | ||
| + | command="/ | ||
| + | </ | ||
| + | * no **~/ | ||
| + | * [[https:// | ||
| + | |||
| + | == repositorio | ||
| + | [[https:// | ||
| + | === crear repositorio bare | ||
| <code bash> | <code bash> | ||
| mkdir repo.git | mkdir repo.git | ||
| Línia 8: | Línia 34: | ||
| </ | </ | ||
| - | == crear repositorio para compartir | + | === crear repositorio para compartir |
| <code bash> | <code bash> | ||
| git init --bare --shared=group repo_path | git init --bare --shared=group repo_path | ||
| chgrp -R foo repo_path | chgrp -R foo repo_path | ||
| </ | </ | ||
| - | == convertir repositorio a su versión bare | + | |
| + | === convertir repositorio a su versión bare | ||
| <code bash> | <code bash> | ||
| mv repo/.git repo.git | mv repo/.git repo.git | ||