tech:git_-_duplication_d_un_depot
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:git_-_duplication_d_un_depot [2026/01/19 10:22] – créée Jean-Baptiste | tech:git_-_duplication_d_un_depot [2026/01/19 10:22] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | |||
| + | # Git - Duplication d'un dépôt | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | git clone --bare https:// | ||
| + | |||
| + | cd OLD-REPOSITORY | ||
| + | git push --mirror https:// | ||
| + | |||
| + | cd .. | ||
| + | rm -rf OLD-REPOSITORY | ||
| + | ~~~ | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ~~~bash | ||
| + | git clone https:// | ||
| + | cd depot | ||
| + | #git pull --all | ||
| + | |||
| + | git remote remove origin | ||
| + | git remote add origin https:// | ||
| + | |||
| + | git push -u origin --all | ||
| + | # git push -u origin --mirror | ||
| + | ~~~ | ||
| + | |||
| + | |||
