Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,917
Community Members
 
Community Events
165
Community Groups

Import from On Premise DevOps

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 Nov 08, 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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you