gitbitbucketcpanelmove

Move BitBucket repository to cPanel


I have a repository that is currently hosted on BitBucket, that I want to move to Git cPanel version control (run by my hosting company), so I can then delete my account on BitBucket and host all my repositories in a single location. I do not want to have any links/ties to the original BitBucket repository, but I do need to retain all of the repository history.

I did try... git push -u origin master ...but this made me nervous... branch 'master' set up to track 'origin/master'.

Is this possible, and if so, how?


Solution

  • You must first change your origin remote url with the new cPanel one

    git remote set-url origin <new-cpanel-gitrepo-url>
    

    And then push like you were doing before