File '_netrc' / '.netrc' is not accepted by Git

*爱你&永不变心* 提交于 2019-12-01 01:42:55

问题


I have set the %HOME% environment variable on my Windows installation.

In that folder I have put a file called _netrc. Inside that file I have:

machine code.google.com login <logon> password <censored>

But both, MSYS and Tortoise keep asking for a password.

I am using Windows 7, MSYSGit and TortoiseGit. Why does this not work?

I have found an article on Stack Overflow that said it must be named _netrc and not .netrc, but none of them work.


回答1:


Assuming you did everything that was described in this answer and you set the right location for your %HOME% environment variable (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 repository.

The URL to clone a Google Code repository 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 repository.



来源:https://stackoverflow.com/questions/6903158/file-netrc-netrc-is-not-accepted-by-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!