我们喜欢TortoiseGit,并希望利用GitHub的双因素身份验证 ......但这两者似乎并不想一起工作.
有没有人找到解决方案?
我正在尝试使用dumb http协议在我们公司的Intranet服务器上共享一个git repo ,它只需要文件访问,但它失败了
fatal: repository 'http://my-url/repo.git' not found
Run Code Online (Sandbox Code Playgroud)
但是,粘贴在Firefox相同的链接给我的指标到裸露的回购有branches/,config,description,HEAD等所有的目录和文件读取.事实上,如果我使用wget递归地下载整个事物,我可以git clone在本地下载,所以所有必需的文件似乎都可以访问而没有问题.
$ wget -r --no-parent --reject "index.html*" http://my-url/repo.git
$ git clone repo.git test
Cloning into 'test'...
done.
Run Code Online (Sandbox Code Playgroud)
继续调试我尝试使用GIT_CURL_VERBOSE和详细输出GIT_TRACE:
$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone http://my-url/repo.git test
trace: built-in: git 'clone' 'http://my-url/repo.git' 'test'
Cloning into 'test'...
trace: run_command: 'git-remote-http' 'origin' 'http://my-url/repo.git'
* Couldn't find host my-url in the .netrc file; using defaults
* …Run Code Online (Sandbox Code Playgroud)