netrc not accepted by git

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 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 🙂

  • Can't type characters in git bash
  • Git slow sometimes
  • Is there a way to prevent git from opening a password prompt box on Windows?
  • Getting the full git log after rolling back to a previous version
  • Git annex installation on Windows
  • Setup a git server on a windows
  • SVN Rights Management Tool using Windows Authentication method
  • SourceTree custom action doesn't work but works through Git terminal window
  • One Solution collect form web for “netrc not accepted by git”

    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 (see this Google link for that).

    So, you have to do a

    git svn clone

    in order to import your Google repo.

    Git Baby is a git and github fan, let's start git clone.