簡體   English   中英

無法在WebStorm中克隆git存儲庫

[英]Cannot clone git repository in WebStorm

在新的Windows 10計算機上設置開發環境時,遇到了以下問題-我無法通過WebStorm克隆遠程git存儲庫(版本11.0.4和2016.2-均為評估版)。

奇怪的是,我可以在同一台計算機上使用Windows命令行成功克隆,而其他人可以在不同的計算機上使用WebStorm在相似的設置下成功克隆同一倉庫。

使用默認的Windows預設將Git安裝到默認位置( C:\\Program Files\\Git ),cmd目錄位於PATH上,配置了用戶名和電子郵件(我什至嘗試生成SSH密鑰)-再次克隆在命令行中按預期工作。

存儲庫的URL為[username]@[ip]:/var/www/git/[repo.git] (存儲庫位於本地服務器上)。 此URL已成功用於命令行克隆和其他計算機的WebStorms。

WebStorm git設置是默認設置,具有正確的git.exe路徑(cmd目錄中的一個),並且Test有效。 嘗試使用“內置”和“本機”變體進行。

嘗試在WebStorm中檢出時,測試失敗, Test repository failed

當打開通過命令行克隆的存儲庫並嘗試在WebStorm中更新時,結果如下:

Built-in mode:

16:26:06.446: cd [redacted]
16:26:06.446: git -c core.quotepath=false fetch origin --progress --prune
error: cannot spawn C:\Users\User\AppData\Local\Temp\git-ssh-0.bat: No such  file or directory
fatal: unable to fork

Native mode:

16:26:24.404: cd [redacted]
16:26:24.404: git -c core.quotepath=false fetch origin --progress --prune
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

我嘗試了所有我能想到的巫術魔術(卸載,版本,UAC,進程,目錄,PATH魔術等),但沒有任何幫助。

任何幫助將不勝感激-列表上的下一步是Windows重新安裝... :)

就我而言,這是交易:

Webstorm正在射擊有關文件intellij-git-ssh.bat 當我嘗試雙擊它時-我收到未找到文件的錯誤。

進一步挖掘,我發現整個系統中的所有bat文件都是這種情況。 我必須驗證將系統環境變量COMSPEC設置為: %SystemRoot%\\system32\\cmd.exe cmd.exe-它具有一些其他NodeJS后綴,沒有后綴。

重新打開Webstorm-瞧!

暫無
暫無

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

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