- 
      
- 
        Save thiagomgo/fd78a48cfd574df06a1535fdf52573c6 to your computer and use it in GitHub Desktop. 
Revisions
- 
        thiagomgo revised this gist Jan 25, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,9 @@ $ cd $HOME/Code/repo-directory $ git remote rename origin bitbucket $ git remote add origin https://github.com/user/awesome-new-repo.git $ git branch --set-upstream-to=origin/master master $ git push origin master $ git pull origin master --allow-unrelated-histories $ git remote rm bitbucket 
- 
        mandiwise revised this gist Apr 6, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ // See also: http://www.paulund.co.uk/change-url-of-git-repository $ cd $HOME/Code/repo-directory $ git remote rename origin bitbucket 
- 
        mandiwise created this gist Mar 7, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ $ cd $HOME/Code/repo-directory $ git remote rename origin bitbucket $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git $ git push origin master $ git remote rm bitbucket