git is asking for password every time code example

Example 1: git asking for password every time

# it will ask just one more time
git config --global credential.helper store

Example 2: 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 3: gitlab asking for password every time

git config --global credential.helper store
git config --global credential.helper cache