linux:forgejo
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| linux:forgejo [2026/06/17 09:16] – root | linux:forgejo [2026/09/12 07:49] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| <code bash> | <code bash> | ||
| git remote set-url origin https:// | git remote set-url origin https:// | ||
| + | # ou pour un nouveau | ||
| + | git remote add origin https:// | ||
| git push -u origin main | git push -u origin main | ||
| </ | </ | ||
| Ligne 13: | Ligne 15: | ||
| git remote set-url origin https:// | git remote set-url origin https:// | ||
| git push -u origin main | git push -u origin main | ||
| + | </ | ||
| + | |||
| + | ### Sur un poste prod/test | ||
| + | |||
| + | <code bash> | ||
| + | # Configurer le helper credentials store (chiffré minimal, suffisant pour serveur dédié) | ||
| + | git config --global credential.helper store | ||
| + | |||
| + | # Créer le fichier ~/ | ||
| + | echo " | ||
| + | chmod 600 ~/ | ||
| + | |||
| + | # Maintenant tu peux cloner avec URL propre | ||
| + | git clone https:// | ||
| + | # → Git utilisera automatiquement le token du fichier credentials | ||
| + | |||
| </ | </ | ||
linux/forgejo.1781687803.txt.gz · Dernière modification : de root
