GIT: Commonly used operations

2019-06-21  本文已影响0人  Andy512

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

上一篇下一篇

猜你喜欢

热点阅读