Hello,
I have a doubt regarding migrating only a couple of commits from gitlab to bitbucket.
I have already migrated the entire project repo from gitlab to bitbucket.
But later a colleague of mine added some commits in gitlab which now needs to be moved to bitbucket.
How do I migrate only selected commits from gitlab to bitbucket ?
Thanks.
SJ
Hi, @SJ Office! Welcome to the community!
It’s not possible to migrate only selected commits from GitLab to Bitbucket. However, you can give this user access to the repository on Bitbucket, this way they can commit the changes to the new repository. So, this is what I would suggest:
Give this user access to the repository on Bitbucket;
Ask them to change the remote URL on their local repository by running the following command:
git remote set-url origin {new URL here}
git remote -v
Ask them to check out those commits to a brand new branch and only push that branch to the remote repository;
Then, they can use a Pull Request to merge the changes into the main branch on the Bitbucket repository;
This will assure that they do not introduce conflicts and do not do a force push that could potentially cause damage to the new data on Bitbucket.
I hope this helps, but do let me know if you have any questions.
Kind regards,
Caroline
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.