{{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 ~~~