git on UNC path [英] git on UNC path

查看:253
本文介绍了git on UNC path的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有电脑与Windows XP和没有互联网连接,只有访问网络驱动器。我想在网络驱动器上设置一个git存储库,然后从我的本地存储库推送它,所以我可以在一天结束时去一台计算机与互联网连接和推送从网络驱动器到github。 p>

我的问题是我无法从git访问网络驱动器。我把PortableGit在网络驱动器上,但git-bash.bat和git-cmd.bat与CMD不支持UNC路径作为当前目录。我尝试用git-cmd.bat中的pushd替换cd,但它不工作。



BTW,我使用PortableGit,因为我没有

解决方案

使用UNC路径 - git 不在乎 cmd 可以和不能做。






旧答案:将UNC路径绑定到驱动器号(或使用目录符号链接)。


I have computer with Windows XP and no Internet connection, only access to network drive. I'd like to set up a git repository on the network drive and then push to it from my local repository, so I can at the end of the day go to a computer with Internet connection and push from network drive to github.

My problem is I cannot access network drive from git. I put PortableGit on the network drive, but git-bash.bat and git-cmd.bat die with "CMD does not support UNC paths as current directories.". I tried replacing "cd" with "pushd" in git-cmd.bat, but it doesn't work.

BTW, I use PortableGit since I don't have admin permissions on my machine.

Any ideas?

解决方案

Just use the UNC path - git doesn't care what cmd can and cannot do.


Old answer: Bind the UNC path to a drive letter (or use a directory symlink).

这篇关于git on UNC path的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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