Saturday, February 1, 2014

No Prompt Google Code Credentials for Git

I'm trying to push my latest and greatest git repo to google code and I fat fingered the user/password. Now forever I get

git push --all googlecode

fatal: remote error: Invalid username/password.

Now it won't prompt me again for the credentials and I can't figure out how to get it to forget what I entered already. I tried to remote and add the remote repo but still it remembers. 

The solution is to create a .netrc file and place in your home directory. The googlecode link provides the content for .netrc

Should look something like

machine login password kasdlkjflskj

No comments:

Post a Comment