1.create account
2.create new repository
3.generate key as follows
https://help.github.com/articles/generating-ssh-keys
main points:
ssh-keygen -t rsa -C "email@gmail.com"
ssh -T git@github.com
ssh -vT git@github.com (debug)
git config --global user.name 'The Name'
git config --global user.email "email@gmail.com"
copy the the content of id_rsa.pub to the SSH Keys of github (account settings>> SSH Keys)
4.git clone git@github.com:ukouryou/urlinspector.git (make sure use ' access' model)
5.got error Agent admitted failure to sign using the key Permission denied (publickey)
6.execute command ssh -vT git@github.com (debug)
we can see the Server host key and the Remote key are different
7.execute command ssh-add
8.and then execute ssh -vT git@github.com (debug)
it's ok right now
9.git clone
modify xxx
git add xxx
git commit -a
git push
OVER!