Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import contribution to github from bitbucket

I just got a new job recently, and all repos of their projects are on BitBucket.
I used to use a lot GitHub, so I was wondering if there is a way to sync contribution between the two.

I have already tried https://github.com/jrm2k6/contwidgetor. It seems like a way to do it but didn't work for me somehow, and there is only limited support of it.

like image 710
Isaac Guan Avatar asked Dec 15 '22 00:12

Isaac Guan


2 Answers

You can use Contributions Importer for GitHub

It copies all commits from source git repositories to a mock git repository. Each copied commit will report the same commit date, but the original code is not copied, neither the commit message.

The mock code is generated using the same language of the original source repository.

For example, I have a mock repository on my profile that reports all the activities of all my private repositories.

like image 176
mir88 Avatar answered Dec 26 '22 23:12

mir88


You can at least manually mirror any Git BitBucket repo from BitBucket to GitHub:

git clone --mirror http://user@bitbucket/user/repo.git
git remote add github http://[email protected]/user/repo.git
git push --mirror github 

(Create an empty repo on GitHub side first)

Then, on demand, you can go into your local clone, do a fetch, and then a git push --mirror github again to sync new commits.

like image 22
VonC Avatar answered Dec 26 '22 22:12

VonC