git學習1:配置下載自己的github代碼

我已經在github上建了項目了,這裏不在重複,換了個電腦,我要下載下來修改下。

1,生成密鑰

ssh-keygen -t rsa -C "[email protected]"

2,把公鑰放到github上去

 cat ~/.ssh/id_rsa.pub

 

3,就可以下載了

 

git clone [email protected]:guoyanzhang0817/playMQTTing.git

4,修改提交代碼前的配置:

git config --global user.name "guoyanzhang"
git config --global user.email [email protected]

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章