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 :(
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why does recursive submodule update from github fa
- Why should we check WIFEXITED after wait in order
Removing an empty line from
~/.git-credentials
solved the problem for me.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.This should be solved with With Git 2.27 (Q2 2020).
Recent updates broke parsing of "
credential.<url>.<key>
" where<url>
is not a full URL (e.g.[credential "https://"] helper = ...
) stopped working: that has been fixed.See commit 9a121b0, commit 6828e59, commit 21920cb (24 Apr 2020) by Johannes Schindelin (
dscho
).(Merged by Junio C Hamano --
gitster
-- in commit da05cac, 05 May 2020)And:
Finally:
With the recent tightening of the code that is used to parse various parts of a URL for use in the credential subsystem, a hand-edited credential-store file causes the credential helper to die, which is a bit too harsh to the users.
See commit c03859a (02 May 2020) by Carlo Marcelo Arenas Belón (
carenas
).See commit 20b4964 (28 Apr 2020) by Junio C Hamano (
gitster
).(Merged by Junio C Hamano --
gitster
-- in commit 933fdf8, 08 May 2020)(reported in this very page by the OP)