我想向github遥控器添加第二种形式的身份验证。
情况如下:
如何向这个存储库添加另一种形式的身份验证(即使一次),以使用基于密码的github身份验证?
发布于 2015-06-23 13:36:01
在GitHub上设置SSH键有两种方法。https://github.com/settings/ssh或回购级别的用户级别:
查看GitHub上的存储库,单击右边的Settings
,然后是Deploy keys
,然后添加您的公钥。
发布于 2015-06-23 13:24:31
检查与以下相关的任何git配置:
git config -l
如果结果包括如下内容:
user.name=some_username
user.email=some_string@some_host.com
尝试重置它或取消它:
git config --global unset user.name
或
git config unset user.name
设置一些东西:
git config --global user.name my_newname
或者重置这个:
remote.origin.url=https://username@example.com/xxxx/projects/ndnu/repositories/git/ndnu
https://stackoverflow.com/questions/31003824
复制相似问题