Outils pour utilisateurs

Outils du site


tech:git_-_duplication_d_un_depot

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:git_-_duplication_d_un_depot [2026/01/19 10:22] – créée Jean-Baptistetech:git_-_duplication_d_un_depot [2026/01/19 10:22] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Git}}
 +
 +
 +# Git - Duplication d'un dépôt
 +
 +
 +~~~bash
 +git clone --bare https://github.com/EXAMPLE-USER/OLD-REPOSITORY.git
 +
 +cd OLD-REPOSITORY
 +git push --mirror https://github.com/EXAMPLE-USER/NEW-REPOSITORY.git
 +
 +cd ..
 +rm -rf OLD-REPOSITORY
 +~~~
 +
 +Source : https://docs.github.com/en/repositories/creating-and-managing-repositories/duplicating-a-repository
 +
 +## Autres
 +
 +~~~bash
 +git clone https://git.plop.org/depot.git
 +cd depot
 +#git pull --all
 +
 +git remote remove origin
 +git remote add origin https://git.acme.fr/plop/depot.git
 +
 +git push -u origin --all
 +# git push -u origin --mirror
 +~~~
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki