Git Pull服务器消息:警告:URL没有方案IP:Port,严重:凭据URL无法解析IP:Port [英] Git pull server message : warning: url has no scheme IP:Port , fatal: credential url cannot be parsed IP:Port

查看:1035
本文介绍了Git Pull服务器消息:警告:URL没有方案IP:Port,严重:凭据URL无法解析IP:Port的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我想克隆一些git repo并拉到我的linux服务器上,我在运行服务器时遇到问题:git clonegit pull.它说:warning: url has no scheme IP:Port , fatal: credential url cannot be parsed IP:Port.我试图使用以下命令设置新的URL:git remote set-url origin http://IP:PORT/my.Git.Server/API_WEBTOOL3.git.但它不起作用,仍然会出现相同的错误.请帮助我的问题:(

Hello i want to clone and pull some git repo to my linux server , i have an issue when running : git clone and git pull in my server. it says : warning: url has no scheme IP:Port , fatal: credential url cannot be parsed IP:Port. i tried to set new url with this command : git remote set-url origin http://IP:PORT/my.Git.Server/API_WEBTOOL3.git. but it doesnt work the same error still appear. Please help my issues :(

推荐答案

~/.git-credentials删除空行为我解决了这个问题.

Removing an empty line from ~/.git-credentials solved the problem for me.

我在ubuntu上使用git和git凭据帮助程序存储"时遇到了相同的问题.升级到git 1:2.17.1-1ubuntu0.7(请参见此处 )带来了问题.此安全更新将对凭据URL进行更严格的检查.空行似乎被误解为错误的URL.

I had the same problem using git on ubuntu and a git credential helper "store". The upgrade to git 1:2.17.1-1ubuntu0.7 (see here) brought the problem. This security update adds more strict checks of the credential URLs. It seems the empty line is misinterpreted as a bad URL.

这篇关于Git Pull服务器消息:警告:URL没有方案IP:Port,严重:凭据URL无法解析IP:Port的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆