2016-04-06 73 views
0

昨天我的github回购站开始出现奇怪的问题,当时突然提示用户& passwd进行推送。 Git使用ssh进行设置,并且几个月内没有任何更改。'git remote'显示的URL不同于.git/config中设置的url。

$ git remote -v 
origin https://github.com/user/repo.git (fetch) 
origin https://github.com/user/repo.git (push) 

$ cat .git/config 
/-/ 
[remote "origin"] 
    url = [email protected]:user/repo.git 
/-/ 

$ git config remote.origin.url 
[email protected]:user/repo.git 

通过远程set-url重新设置也不会改变任何东西。 bitbucket回购没有问题。我错过了一些改变吗?

+0

它看起来像所有的东西都配置了github? –

+0

在github上未找到任何相关配置。 – laur

+0

您的回购协议仍然在github中创建? –

回答

0

我的gitconfig包含一个来自我目前正在使用的项目之一的配置。一个新的房产被介绍,我不知道:

[url "https://github.com/"] 
    insteadOf = "git://github.com/" 

案件关闭。

相关问题