Github.com to Bitbucket.org: exploiting those free private repos

Straightforward, three lines on the command-line to hit the git remote of bitbucket!

git remote rm origin #Removes old origin
git remote add origin https://username@bitbucket.org/your.new.repo #Adds new origin pointing to BitBucket
git push -u origin #Pushes commits to new repo

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.