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’: