git always asks for username and password

Run following commands to cache credentials

$ git config credential.helper store
$ git push https://github.com/repo.git

Username for ‘https://github.com’:
Password for ‘https://USERNAME@github.com’:

Share

Leave a Reply

Your email address will not be published. Required fields are marked *