Git Save Credentials Permanently

I do not want to enter my github/gitlab passwords every single time I want to push something. This snippet helps store git password.

svelte logo

Want to build a Svelte/SvelteKit site? Hire Me.

If you want to save your git passwords permanently then use this snippet.

git config --global credential.helper store

This saves the password as a plain text file on the computer with the name .git-credentials. Anyone else using your computer can also see your password.

Refer: git credential store

Find related articles

Let's discuss on Twitter