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]

 

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