Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github仅在新存储库上请求凭据_Git_Github_Github For Mac - Fatal编程技术网

Github仅在新存储库上请求凭据

Github仅在新存储库上请求凭据,git,github,github-for-mac,Git,Github,Github For Mac,我遇到一个问题,在推送到远程回购时,只有新的回购才会要求我提供凭证。较旧的存储库不要求我提供凭据 我所有的遥控器(包括需要凭据的遥控器和不需要凭据的遥控器)都使用HTTPS,因此我认为这与使用SSH和HTTPS无关 我认为有一点可能已经改变了,那就是我在BitBucket上设置了SSH密钥。从那时起,在新的回购协议上从GitHub推/拉需要我再次输入凭据。我可以通过将凭据助手设置为osxkeychain来解决此问题: git config --global credential.helper o

我遇到一个问题,在推送到远程回购时,只有新的回购才会要求我提供凭证。较旧的存储库不要求我提供凭据

我所有的遥控器(包括需要凭据的遥控器和不需要凭据的遥控器)都使用HTTPS,因此我认为这与使用SSH和HTTPS无关


我认为有一点可能已经改变了,那就是我在BitBucket上设置了SSH密钥。从那时起,在新的回购协议上从GitHub推/拉需要我再次输入凭据。

我可以通过将凭据助手设置为osxkeychain来解决此问题:

git config --global credential.helper osxkeychain

它需要Github凭据吗?您是否尝试比较新旧存储库之间的远程URL?是的,它要求GitHub凭据。旧远程存储库和新远程存储库的URL格式相同: