.netrc for google code on Windows
For automated git-authentication magic googlecode gives you a line to add to the .netrc file. This will seamlessly authenticate you with a username and password on googlecode for smooth git interaction.
What they fail to mention is how to implement this on Windows.
Here it is in three easy steps:
- Open the command prompt.
- Type set HOME=%HOMEPATH% and press enter to create a new environment variable telling git where to find your netrc file.
- Type echo machine code.google.com login *email* password *password* > %HOME%\_netrc swapping out yourEmail and password with the ones supplied by google. On windows the file is not .netrc but _netrc.
You can now clone any googlecode repo you have access to without any authentication problems.
This is a copy from http://codeonfire.cthru.biz/?p=101 So I don't loose it :)
While I'm at it GitHub's Git Cheat Sheet
git add .
git commit -m "Commit Message"
git push origin --all



