git配置

来源:互联网 发布:seo云优化是什么意思 编辑:程序博客网 时间:2024/04/29 18:49

安装

sudo apt-get install git

配置

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
ssh-keygen -t rsa -C "your_email@example.com"一路回车复制.ssh/id_rsa.pub中得sshkey到github SSH中
ssh -T git@github.com
You may see this warning:The authenticity of host 'github.com (207.97.227.239)' can't be established.# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.# Are you sure you want to continue connecting (yes/no)?输入yes,出现成功提示
参考:
https://help.github.com/articles/set-up-git/


0 0