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:


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

    helper = store

to your ~/.gitconfig

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