Azure DevOps Fork Repos between two Organization
This weekend I embarked on a topic a bit foreign to myself, on the surface seemed a bit simple.
The idea is to fork my Azure DevOps Repo to a different organization and push changes between them.
Bad news DevOps doesn’t allow to fork Repos to a different organization, you have only the capability to fork to a different Projects within the same Organization.
I’m pretty much sure there are so many other ways to solve this issue, but this is the one that I found to be easy to implement.
Import Repo to the new Organization
Remember here you have to generate a personal token to be able to import the Repo
you have to be a member of the new organization as well
This might take a few minutes depending on the size of your project, once its complete you will receive a confirmation email, or just refresh it after few minutes
So far all looks good, you can clone the solution in your new Organization, branch and do all the amazing things that git provides.
Few things to remember here:
Your changes are merged in the master of your new organization
Question is what can you do to push your changes from the new Organization to the to the Previous Organization where you have imported your repo?
This will give you
the capability to push and fetch changes from the Organization that
the code has been generated.
I really like your suggestion. I just have one issue. Which is that I have to push twice for both organization separately from Visual Studio. If you have a solution which pushes in both organization in one go then I would really appreciate your help.
ReplyDelete+1
DeleteI will look into it, that was not my use case, to be honest.
DeleteThis works for me but I have to push and fetch twice for both organization.
ReplyDeleteIt's excellent. Saved my time.
ReplyDelete