add public kay
go to ~/.ssh
, check if there exist id_rsa
and id_rsa.pub
id_rsa
is the private key and id_rsa.pub
is the public key.
if those two files not existed, create them by:
ssh-keygen -t rsa -C "youremail@example.com"
add the publica key into your github
add remote repo
git remote -add "name" master "git@..."
fetch a repo from github
git remote fetch
网友评论