Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How Do I Import A Repository From GitHub

Ken Tola March 4, 2016

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

Thank you!

2 answers

1 accepted

1 vote
Answer accepted
Brian Jones
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2016

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

http://befused.com/git/github-bitbucket-move

 

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.

-Brian

 

0 votes
G__Sylvie_Davies__bit-booster_com_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2016

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
TAGS
AUG Leaders

Atlassian Community Events