Google Code Git Save Account & Password

If you are Steve, create in your home directory a .netrc file, type:

  • cd ~
  • vi .netrc

    Add the following lines in file .netrc
    machine mac.mobilefish.intranet
    login steve password steve_password


  • Make sure no one can access .netrc file, type:
    chmod 600 .netrc

利用~/.netrc 存放账号,且设置合理权限。

配置格式:

machine code.google.com login [email protected] password google_code_generate_password
 

你可能感兴趣的:(git)