Setting up .netrc file on Mac OS X (Lion) for Git

Couple of days ago, I started using Google's code projects for Git as well. It required me to setup and use .netrc file. Here are steps I took:

  1. CD to $HOME directory and typing on command line 
  2. $ cd ~
  3. Create .netrc file
  4. $ vi .netrc
  5. Add these line to .netrc
  6. machine code.google.com login <username> password <password>
  7. Set permissions "chmod 600 .netrc" to make sure that no one else is able to access this file
  8. $ chmod 600 .netrc
  9. Now, you should be able to push and pull from remote git repo without having to enter password every time.


No comments:

Post a Comment

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .