Import from On Premise DevOps

shawnatvelocit November 5, 2021

We currently run Azure DevOps on premise and are looking to migrate to Jira/BitBucket in the cloud. It looked fairly straight forward but I can't seem to get BitBucket to connect to my DevOps server to import the GIT repos. I have followed several tickets here and with no luck. I have used both regular creds as well as attempting to use the PAT creds. Does anyone have any experience moving repos? In the end I know I can just export to zip and start fresh but I would like to retain the revision history if at all possible. In case it helps I the version we are running on prem is Dev17.M153.5

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2021

Hi @shawnatvelocit

Welcome to the community!

If I understand this correctly you wish to import your Git repositories from your OnPremis DevOps to Bitbucket. You have tried using the Importer tool but you are failing to get the correct credentials? 

If yes, have you tried using the following URL example to import?

https://username@<your-domain>/<your git repositories>

Make sure the path is following your clone URL path.

If you still failing to import the repositories another workaround would be to push your bare repositories over to the Bitbucket cloud. You can follow these steps:

  1. Create empty repositories in Bitbucket 
  2. Clone your bare repositories using the following commands
    git clone --mirror https://<your-domain>/<your git repositories>
  3. Update your bare repositories remote URL to the repositories URL you  created on step 1 as following
    git remote set-url origin https://bitbucket.org/<Workspacename>/<Repositories-name>
  4. Then run "git remote -v" to check if the URL is updated correctly
  5. Push the changes by using "git push", this should push the repositories to Bitbucket.
  6. Check the repositories in Bitbucket it should be updated with your repositories

I hope this helps, let me know if you have any additional questions.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events