How to import from github to a bitbucket repo

psiqueware
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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