netrc不被git接受 [英] netrc not accepted by git
问题描述
我在窗口中设置了%HOME%变量。
在该文件夹中,我放置了一个名为_netrc的文件。在那个文件里面我有:
machine code.google.com login< logon>密码<被审查>
但是,MSYS和Tortoise一直在询问密码。
我正在使用Win7,MSYSGit和TortoiseGIT。有谁知道为什么这不起作用?
我发现了一篇关于stackoverflow的文章,称它必须被命名为_netrc而不是.netrc,但两者都不起作用。
感谢:)
在这个答案,你设置了正确的你的%HOME%
的位置(用 echo%HOME%
确认),并检查该位置是否有 _netrc
文件),您的回购使用中肯定有错误。
克隆Google代码的URL repo是 https://user.googlecode.com/svn/trunk
(请参阅 this link )。
git svn clone https://user.googlecode.com/svn/trunk
以导入您的Google回购。
I have set the %HOME% Variable in my windows.
In that folder I have put a file called _netrc. Inside that file I have that:
machine code.google.com login <logon> password <censored>
But both, MSYS and Tortoise keep asking for that password.
I am using Win7, MSYSGit and TortoiseGIT. Does anyone know why this does not work?
I have found an article on stackoverflow that said it must be named _netrc and not .netrc, but both do not work.
Thanks :)
Assuming you did everything that was described in this answer and you set the right location for your %HOME%
(confirm this with an echo %HOME%
and check that in that location there's a _netrc
file), there must something be wrong in the usage of your repo.
The URL to clone a Google Code repo is https://user.googlecode.com/svn/trunk
(see this Google link for that).
So, you have to do a
git svn clone https://user.googlecode.com/svn/trunk
in order to import your Google repo.
这篇关于netrc不被git接受的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!