Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to fork from Github to Bitbucket?

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 2.37k
    Comment on it

    I was working on a project that was hosted on Github. My project was hosted on Bitbucket. Both of them uses git. Now I have to create a fork of project in my Bitbucket repository. In order to be able to get updates and without downloading and replacing all the project then commit and push it.

    This issue was resolved later by making a clone from Github and pushing to Bitbucket

    $ git clone https://github.com/project/project
    $ git push git@bitbucket.org:mg/project.git master

    These commands will move the source from GitHub to Bitbucket without having to download any zip files or tarballs

    Firstly, I have created mg/project as an empty Git repository in Bitbucket. Then you can push/pull changesets from GitHub to Bitbucket.

    That's all!

     

    Thanks for reading the blog.

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: