Git: mudanças entre as edições
De MochilaWiki
Ir para navegaçãoIr para pesquisar
Criou página com '* Git Large File Storage' |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
* [[Git Large File Storage]] | * [[Git Large File Storage]] | ||
== Como migrar o repositório Git com Branches e Commit History == | |||
<source lang="bash"> | |||
git clone --mirror https://url-of-the-source-git-repo.git | |||
cd to-your-git-repo-folder.git | |||
git remote set-url --push origin https://url-of-the-destination-git-repo.git | |||
git push --mirror | |||
</source> | |||
fonte: https://datanextsolutions.com/blog/how-to-migrate-git-repository-with-branches-and-commit-history/ | |||
Edição atual tal como às 11h41min de 31 de agosto de 2022
Como migrar o repositório Git com Branches e Commit History
git clone --mirror https://url-of-the-source-git-repo.git
cd to-your-git-repo-folder.git
git remote set-url --push origin https://url-of-the-destination-git-repo.git
git push --mirror
fonte: https://datanextsolutions.com/blog/how-to-migrate-git-repository-with-branches-and-commit-history/