Monday, February 6, 2012

Using .netrc with Windows for git without password prompts

These days I am working on Windows and I spent some time to learn the shortcuts I have used to use with Linux.

If you are using a git repository; you often want to declare your password somewhere in order not to enter in every pull/push.

In windows it is a bit tricky. Tricky part is that you name fie _netrc instead of .netrc. The configuration I did for my account is displayed below. Another thing to keep in mind is you net to remove username from url as bitbucket suggests. In that case _netrc is not used.