您的位置:首页 > 编程语言

github 的一些问题汇总

2015-07-09 14:37 316 查看

1. 设置public-key

a. 首先在你的机器中生成public-key:

$ ssh-keygen -t rsa -C "${email}"
b. 然后将.ssh/id_rsa.pub的内容添加到github的“ssh keys”中

c. 设置Git的帐户信息

$ git config --global user.name "${username}"
$ git config --global user.email "${email}"
d. 测试:

$ ssh -T git@github.com

2. 提交容易出错

a. 将项目中.git/config文件中的“url”对应的内容改成:

[remote "origin"]
	url = https://${user}:${passwd}@github.com/${user}/XXX.git[/code]
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: