簡體   English   中英

Git克隆僅適用於git://,不適用於https://

[英]Git clone only works with git:// and not with https://

嘗試使用“ https://”進行克隆時,始終會出現“致命錯誤:讀取錯誤:參數無效”的錯誤。 當我用“ git://”替換URL時,同樣的工作

$ git clone https://github.com/DiyanTonchev/Issue-Tracking-System.git克隆到'Issue-Tracking-System'...致命:讀取錯誤:無效參數

當我嘗試使用“ git clone git://github.com/DiyanTonchev/Issue-Tracking-System.git”時。 我能夠正確克隆

嘗試git credential-osxkeychain輸出。

對我來說,我已經從.gitconfig文件中刪除了不需要的Url配置。

您可以使用以下命令找到文件位置。

'$ git config --show-origin --get credential.helper'。

有關更多信息,您可以參考以下鏈接( disable git credential-osxkeychain

我嘗試了使用https提到的回購的git克隆,並且工作正常。 我在Mac上。 您在Windows上嘗試嗎? 您是否嘗試過git bash或Cygwin? 此外,避免在cmd上粘貼“ Control + V”,因為它會附加隱藏的“ ^?”。 有時,安裝也已損壞,因此可以嘗試重新安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM