General git always asks for username and password February 21, 2019 Pramod T P Leave a comment 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’: