How Do I Import A Repository From GitHub

Is there something built into Bitbucket or a process I can follow?

Thank you!

2 answers

1 accepted

This widget could not be displayed.
Brian Jones Community Champion Mar 04, 2016

If you are on Bitbucket Cloud here is a pretty good article on how to do it.


If you are on Bitbucket server its a little more complicated. What seems to work best for us, when we migrated from GitHub Enterprise to Bitbucket Server is the following:

  1. git clone --bare <git url>
  2. cd into your cloned repo
  3. git remote add <new repo name> <new repo URL>
  4. git push --all <new repo name>
  5. git push --tag <new repo name>


Hope that helps.



This widget could not be displayed.

This usually works for me (Bitbucket Cloud and Bitbucket Server).  Slightly fewer steps compared to Brian Jones's answer:

  1. Creat the repo in Bitbucket Cloud or Bitbucket Server as a new repo.
  2. git clone --mirror <github clone url>
  3. cd into the cloned repo dir
  4. git push --mirror <bitbucket clone url>

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

136 views 5 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you