Outils pour utilisateurs

Outils du site


tech:git_-_duplication_d_un_depot

Ceci est une ancienne révision du document !


Git - Duplication d'un dépôt

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

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
tech/git_-_duplication_d_un_depot.1768814570.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki