1

I need to provide every time I push to gitlab my username and my personal access token. This is not about the ssh key, as described in other postings here on stackoverflow.

To copy/pasted the access token every time is very cumbersome.

So is there a save config option to permanently save the access token so that I am automatically authenticated?

Michael Hoeller
  • 22,018
  • 10
  • 39
  • 66

1 Answers1

3

I found the solution. Just add a store for the credentials in your config with:

git config credential.helper store

And after you have entered the credentials the next time git will take them from .git-credentials instead of asking you. Just a not on security: the store saves everthing in plain text!

Michael Hoeller
  • 22,018
  • 10
  • 39
  • 66