S
S
Sergey delphinpro2015-04-19 15:15:05
git
Sergey delphinpro, 2015-04-19 15:15:05

How to migrate a repository from bitbucket to github?

How to migrate a repository from bitbucket to github?
How to keep up-to-date repositories on both sites?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2015-04-19
@delphinpro

git clone --mirror [email protected]:username/projectname.git
cd projectname
git remote add github [email protected]:username/projectname.git
git push --mirror github

Where username and projectname are the username and projectname, respectively. And of course the [email protected]:username/projectname.git repository must exist before the push.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question