netrc不被git接受 [英] netrc not accepted by git

查看:207
本文介绍了netrc不被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屋!

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