简体   繁体   English

Windows git https通过代理服务器克隆无法写入文件

[英]windows git https clone through proxy server failed to write files

In the process of cloning a repo through my company proxy server through sysinternal I can see the it tried to write the git repository but failed. 在通过sysinternal通过我的公司代理服务器克隆存储库的过程中,我可以看到它试图编写git存储库,但是失败了。 However, the .git directory was created but mostly with empty directories. 但是,创建了.git目录,但大多数目录都为空。

I have set up my proxy server configuration with " git config --globlal http.proxy ... " and " git config --global https.proxy ... ". 我已经使用“ git config --globlal http.proxy ... ”和“ git config --global https.proxy ... ”设置了代理服务器配置。
Since I connected to git (I was prompted to enter my account/password), I know the proxy setup works. 由于我已连接到git(提示输入我的帐户/密码),因此我知道代理设置有效。

From Sysinternal I can see the errors as 从Sysinternal,我可以看到错误为

Query Open C:\Users\myUser\https:\github.com\myGitAccount\source.git\.git  FAST IO DISALLOWED
CreateFile C:\Users\myUser\https:\github.com\myGitAccount\source.git\.git NAME INVALID Denied Access: Read Attributes. Disposition:

Github verified that the repo is fine. Github验证了回购协议是可以的。

A git clone for an https accessed GitHub repo should be: 用于https访问的GitHub存储库的git克隆应为:

git clone https://github.com/aUserName/aRepoName.git

And it should takes place in a session where HOME is defined if you want to cache your GitHub credentials, as mentioned in " Git - How to use .netrc file on windows to save user and password ". 如果要缓存GitHub凭据,则应在定义HOME的会话中进行,如“ Git-如何在Windows上使用.netrc文件保存用户和密码 ”中所述。

For the proxy, see also " Syncing with github ". 对于代理,另请参阅“ 与github同步 ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM