/ git

Avoid Username and password while pushing git commits.

Avoid git prompt for password

  1. Locate the file ~/.netrc on linux based system (generally its hidden file in Home folder).

  2. Add following details in this file for github.

machine github.com

   login < username >

   password < password >

and save it

On next git pull, git push, it will not prompt for username/password.

Attached sample ~/.netrc file

Yogendra Tala

I am Ruby on rails developer. I like to work on web development technologies. Listening music, reading articles are my hobbies.

Read More