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

How to import from github to a bitbucket repo

psiqueware February 25, 2018

That is basically what I want to do, to copy the full repo from github and put it on bitbucket. Of course I will like not to loose info in the process (like history).

1 answer

1 accepted

0 votes
Answer accepted
psiqueware February 25, 2018

Ok, here is the answer.

 

git fetch origin

 

git remote add new-origin git@github.com:local/repo.git

 

git push --all new-origin
git push --tags new-origin

 

git remote rm origin

 

git remote rename new-origin origin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events