Advertisement
Guest User

Untitled

a guest
Dec 29th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #Instructions to configure git on your computer:
  2. #Assuming you have an account on github/bitbucket with "username" & "email@server.com" & "passphrase"
  3. git config --global user.name "username"
  4. git config --global user.email "email@server.com"
  5.  
  6. #optional step starts
  7. cd ~/.ssh
  8. rm id_rsa*
  9. #ends
  10.  
  11. ssh-keygen -t rsa -C "email@server.com"
  12. #enter secret key
  13. KEY: passphrase
  14.  
  15. cat ~/.ssh/id_rsa.pub > githubKey.txt
  16. #add ssh key to github/bitbucket
  17.  
  18. ssh -T git@github.com
  19. ssh -T git@bitbucket.org
  20. # Test Setup - Attempts to ssh to github/bitbucket
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement