git小结

http://www.cnblogs.com/findingsea/archive/2012/08/27/2654549.html

验证是否成功设置

1 ssh -T git@github.com

如果出现Permission denied (publickey).的错误,说明秘钥过期了,重新生成一个,添加进去

ssh-keygen

一路回车,然后添加进去github。

初次安装的话需要先配置。

配置email和用户名

1 $ git config --global user.name author #将用户名设为author
2 $ git config --global user.email author@corpmail.com #将用户邮箱设为author@corpmail.com

posted @ 2017-01-10 16:42  朱向西  阅读(84)  评论(0编辑  收藏  举报