Another article: the problem of "saving the user name and password on the GIT Windows client" is finally solved.
Http://www.cnblogs.com/dudu/archive/2011/07/06/git_save_username_password.html
It is troublesome to enter the user name and password every time you push the Code, especially when you cannot remember the password. How to Set Google Code:
Add the following to your. Netrc.
Machine code.google.com login XXX@gmail.com password xxx
Make sure the clone URL doesn' t contain your Username:
Git clone https://code.google.com/p/micolog2/
However, this setting does not work in windows, nor does it work in cygwin (this is not sure why ). Later, the method was found on Stack-over-flow. In Windows, the _ netrc file needs to be created in the % home % directory, instead of. netrc.
Open the command line and execute the following command:
1. Set a % home % environment variable and point it to a directory, such as your own user directory.
Setx home % homepath %
2. Create the _ netrc file under the directory.
Notepad % homepath %/_ netrc
3. Fill in the corresponding content, and save and close
Machine code.google.com
Login XXX@gmail.com
Password xxx
Open git bash and execute the pull and push commands.
Http://blog.rexzhao.com/2011/11/29/Google-Code-set-netrc.html