Automate Git credentials for package updates

I have several of my own packages stored on a campus GitLab server.

Every time I do a Pkg.update(), I have to provide my Git username/password, individually for each of these packages. It gets a bit tedious.

Is there a way to store Git credentials somewhere so Pkg can provide them automatically?

1 Like

Just use SSH keys:

https://docs.gitlab.com/ee/ssh/README.html

3 Likes

You can store the credentials in ~/.git-credentials as https://{user}:{password}@github.com and then add

[credential]
    helper = store

to your ~/.gitconfig

EDIT:
I see you asked about gitlab and not github, my bad. I think the above solution should still work if you change github to gitlab, but I don’t know for sure

1 Like