Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # config
  2.  
  3. change *.ssh/config*, if doesn't exists then create
  4.  
  5. ```bash
  6. Host bitbucket.org
  7. IdentityFile /Users/fabio/.ssh/bitbucket1
  8.  
  9. Host bitbucket2
  10. HostName bitbucket.org
  11. PreferredAuthentications publickey
  12. IdentityFile ~/.ssh/bitbucket2
  13. ```
  14.  
  15. # add origin to bitbucket2
  16. ```bash
  17. $ git remote add origin ssh://git@bitbucket2/myname/confee-web2.git
  18. ```
  19.  
  20. # add origin to bitbucket
  21. ```bash
  22. $ git remote add origin ssh://git@bitbucket.org/myname/confee-web2.git
  23. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement