Avoid git prompt for password
Locate the file ~/.netrc on linux based system (generally its hidden file in Home folder).
Add following details in this file for github.
login < username >
password < password >
and save it
On next git pull, git push, it will not prompt for username/password.
Attached sample ~/.netrc file