1 Answer
- Newest
- Most votes
- Most comments
0
Git can sort it out automagically once you clone the repo.
Just checkout on the branch you want to migrate and add the remote repo as a new remote for the clone. Then just push !
git clone #urlofyourgitrepo#/v1/repos/repoName
git checkout branchName
git remote add destination #urlofyourgitrepo#/v1/repos/repoName
git push destination branchName
Relevant content
- Accepted Answerasked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated a year ago
Hello Giovanni, Let me elaborate further. I'm working with two AWS CodeCommit repositories that have the same name (MyDemoRepo) and the same URL (https://gi/t-co/dec/ommit/.us-west-1.amazonaws.com/v1/repos/MyDemoRepo). I'm on a branch feature-xyz in the source repo and need to push it to the destination repo with a prefix, making it new-feature-xyz. My problem here: