Git Credentials Configuring Git Credentials on new machine 2024-01-29 01:53

🥳 This is my first blog post 🎉

Hey there. Recently, I installed Linux Mint on my work computer. I struggled to configure my Git credentials for my company’s self-hosted Gitlab.

I intentionally avoid using SSH keys, because my it-guy-brother said to me ‘There can be a problem in the future if you use SSH keys for Gitlab and if you want to connect your work machine using SSH.’. So, I didn’t even try :)

On every push/pull/clone, I needed to write my username and password (or my personal access token that I created on 2nd step)

Anyway, here is how I solved it:

Don’t forget to copy the access token, because you won’t be able to see it again.


Edit : I forgot the most important part. You need to tell store credentials to git. To do that run this on terminal : git config --global credential.helper store


Quick disclaimer: The personal access token is stored in .git-credentials file in HOME folder as plain text. So, use at your own risk

Thanks for reading. I hope it is helpful.

Said

GitCredentialAccess Token