Mostra la pàginaRevisions anteriorsQuè hi enllaçaExporta a PDFTorna dalt Aquesta pàgina és només de lectura. Podeu veure'n el codi font, però no podeu canviar-la. Consulteu el vostre administrador si penseu que això és degut a algun error. = replicación o duplicación de repositorios <code bash; replicar un repositorio (by mate)> # partiendo de un repositorio existente y uno recién creado cp -r $PATH_REPO $PATH_REPO_NEW (habría que hacer un --bare antes?) git remote -set-url origin $URL_REPO_NEW git push --mirror origin </code> /vía: [[https://stackoverflow.com/questions/3959924/whats-the-difference-between-git-clone-mirror-and-git-clone-bare]] <code bash>git clone --mirror $URL ≡ git clone --bare $URL && (cd $(basename $URL) && git remote add --mirror=fetch origin $URL)</code> <code bash; github doc> git clone --bare $URL_REPO cd $PATH_REPO git push --mirror $URL_NEW_REPO (o cambiar origin y un git push --mirror ?) </code> tech/git/replica.txt Darrera modificació: 20/10/2018 03:29per mate