GIT - Save credentials

Git - Save credentials for longer time

On every action against external GIT you get asked for credentials.
If you use HTTPS for connection to external GIT, this hint could be helpfull to prevent from need of repeating enter your credentials.

  • Setting that credentials get stored
git config credential.helper store
  • Execute git command for remote GIT, credentials will be requested and saved
git pull https://gitlab.selbst-gehostet.de/Hugo/docker01.git master
  • Define time to save credentials in seconds
git config --global credential.helper 'cache --timeout 4320000'
updatedupdated2020-11-292020-11-29