GIT: Commonly used operations

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 "[email protected]"

add the publica key into your github

add remote repo
git remote -add "name" master "git@..."

fetch a repo from github
git remote fetch

你可能感兴趣的:(GIT: Commonly used operations)