git push ubuntu need to supply email and password everytime

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

Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>
git config credential.helper store# inside of ~/.netrc
machine github.com
       login <user>
       password <password>
machine github.com
       login <user>
       password <password>

Source

Also in C++: