Use the authentication token in the ~/.netrc , you can avoid entering a password.
Github recently added a marker function. Then go to settings / applications and create an access token. The syntax in netrc is single-line: machine github.com login <login> password <token> .
An even better feature, the token is designed to prevent users from using the account password to work on the project. Use only the password when working as an administrator, for example, create a new token or cancel the old token.
See another SO post for credential caching methods: Is there a way to skip password entry when using https: // github
minghua
source share