Update the URL of origin remote using SSH instead of HTTPS;
git remote set-url origin git@github.com:username/repo.git
OR
Make Git store the username and password and it will never ask for them.
git config --global credential.helper store
Save the username and password for a session (cache it);
git config --global credential.helper cache
You can also set a timeout for the above setting
git config --global credential.helper 'cache --timeout=600'
Git will never ask for your credentials again.
In a terminal, run:
$ git config --global credential.helper cache
# Set git to use the credential memory cache
To customize the cache timeout, you can do:
$ git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)