initial git settings


  1. cd ~/.ssh   to see whether there is id_rsa, id_rsa.pub (or id_dsa, id_dsa.pub). If not,  write 
    ssh-keygen -t rsa -C "your_email@youremail.com"
  2. cat ~/.ssh/id_rsa.pub to get the pub key
  3. go to https://github.com/settings/keys to add the pub key
  4. ssh -T git@github.com to test it.