Git asks for credentials on every commit

Hi guys, I am facing an issue with git. every time I run git push it asks for username and password. Is there a way to save the credentials or something? It’s getting really annoying.

Idk If this matters but I’m using Terminator as my terminal.

1 Like

I generally run

git config --global credential.helper store

That way it will ask for a username and password once and store them. You could do it separately for each repository by leaving out the --global flag.

3 Likes

thanks! will try without --global. I work with repos from GitLab, Bitbucket, and Github so the --global option won’t work I think.

I work with repos from Github and Overleaf, and it works with --global, since credentials for different websites are stored separately. I’d do it per-repo If i had multiple Github accounts (for example), but really at the end of the day it’s personal preference.

1 Like

Ah, okay!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.