Git

De MochilaWiki
Ir para navegaçãoIr para pesquisar


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/