git always asking for username and password code example

Example 1: git not asking for password

git config --system --unset credential.helper
git config --global --unset credential.helper
git config --local --unset credential.helper

Example 2: how to get git username and password

$ git config --global user.name "Mona Lisa"
$ git config --global user.name
$ mona

Example 3: git push pull asks for login everytime

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

Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>

Example 4: git push ubuntu need to supply email and password everytime

machine github.com
       login <user>
       password <password>