程序笔记   发布时间:2022-07-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Git config大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

after installation, global setting and remote.

1, user name and email:

$ git config --global user.name "xxx"
$ git config --global user.email xxx@xxx.com

2, create ssh key (in local PC):  

$ ssh-keygen -t rsa -C "xxx@xxx.com"

成功的话会在~/下生成.ssh文件夹,进去,打开id_rsa.pub,复制里面的key

3, access the generated key, and add this ssh key to github account<SSH and GPG keys>:

4, test, remember to select "yes" 

$ ssh -T git@github.com

如果是第一次的会提示是否continue,输入yes就会看到:You've successfully authenticated, but GitHub does not provide shell access 。这就表示已成功连上github。

 reference:

https://www.liaoxuefeng.com/wiki/896043488029600/896954117292416

 

大佬总结

以上是大佬教程为你收集整理的Git config全部内容,希望文章能够帮你解决Git config所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: