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