我在新的git linux计算机上使用git.当我这样做时git push
,我要求用户/密码.
我已正确设置git,事实上将github中的repo克隆到新文件夹中工作得很好(使用我的公钥,而不是只读副本).当我尝试从先前的克隆推送到同一个repo时,我会被提示输入用户/通行证.
当然sshing到git@github.com工作,我确保我的公钥在github中配置.任何想法如何继续调试?
mih*_*icc 79
这是因为你做到了
git clone https://github.com/username/repo
Run Code Online (Sandbox Code Playgroud)
代替
git clone git@github.com:username/repo.git
Run Code Online (Sandbox Code Playgroud)
Guy*_*Guy 52
请尝试以下方法:
git remote set-url origin [你的git url,比如git@github.com:.../project.git]
如果你的回购网址是: https://github.com/abc/xyz.git
将url从命令行设置为: git remote set-url origin git@github.com:abc/xyz.git
替换 https://github.com/
为git@github.com:
归档时间: |
|
查看次数: |
20895 次 |
最近记录: |