为什么`git config -f`命令不适用于我的网络文件夹文件? [英] Why `git config -f`command doesn't work with a file of network folder for me?

查看:138
本文介绍了为什么`git config -f`命令不适用于我的网络文件夹文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git for Windows 2.4.5。

使用本地配置文件可以正常工作:

  git config -fd:\\dev\\settings\\gitconfig.txthttp.proxy http:// @ proxy2:8080 

我需要对位于网域中的配置文件执行相同的操作。这个配置文件对我们公司的所有开发人员来说都很常见,并且具有相同的设置(例如代理设置)。我完全有权使用该目录。我推出了这个:

  git config -f\\\\hyprostr\\dfs\\\ \\ groups \\developers\\settings\\gitconfig.txthttp.proxy http:// @ proxy2:8080 

但它不起作用。我看到以下消息:



如果我按 y ,那么我又会收到同样的消息......



为什么发生这种情况,我该如何解决它?

UPD

这很好:

  echo 123> \\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ / pre> 

,这也可以正常工作:

  mv\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ dfs\\groups\\developers\\settings\\gitconfig2.txt



所以,我不明白问题的原因......

这个)问题在Git for Windows 2.5.2中得到修复(谢谢你, Vonc ):


许多bug在mingw-64 bash之上被修复git
for windows基于。



Git for Windows 2.4.5.
It works fine with a local config-file:

git config -f "d:\\dev\\settings\\gitconfig.txt" http.proxy http://@proxy2:8080

I need to do the same with a config-file which is located at the network in our domain. This config-file is common for all developers of our company and has common settings (the proxy settings, for example). I have full rights for working with that directory. I launch this:

git config -f "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt" http.proxy http://@proxy2:8080

But it doesn't work. I see the message:

if I press y then I get the same message again...

Why does it happen and how can I fix it?

UPD

This works fine:

echo 123 > "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt"

and this works fine too:

mv "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt" "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig2.txt"

So, I don't understand the reason of the problem...

解决方案

This (and this) problems were fixed in the Git for Windows 2.5.2 (thank you, Vonc):

Many bugs have been fixed with the mingw-64 bash on top of which git for windows is based.

这篇关于为什么`git config -f`命令不适用于我的网络文件夹文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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