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
 

猜你喜欢

转载自qianjigui.iteye.com/blog/1652312