Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # rename origin remote
  2. git remote rename origin github
  3.  
  4. # add the gitlab remote (for the love of everything that’s holy, use ssh)
  5. git remote add bitbucket <remote link for bitbucket>
  6.  
  7. # push existing code to new remote
  8. git push -u bitbucket —all
  9.  
  10. # let’s magic
  11. git config -e
  12.  
  13. # add this in the file
  14. [remote “origin”]
  15. url = git@github.com:username/reponame.git
  16. url = <remote link for bitbucket>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement