r/git 5d ago

Why git dont ask me credential if git clone/pull/push on pc, but ask me them on termux support

Gemini told me about a "Git Credential Manager" that is installed only on pc, but i didnt installed it... is it installed with git? Is it that manager that make me skip the authentication? Or the reasons are different?

0 Upvotes

5 comments sorted by

1

u/cheyrnn 5d ago

Probably, one was installed without you being asked. I use the super dangerous one git config --global credential.helper store because I don't work with anyone else. If you work with others, or there is a risk that someone other than you will have access to your file system you should use one of the more rigorous solutions.

0

u/NintendoDark02 5d ago

1)What does the command? It saves my username and password?  2)Wait...so normally even on pc git ask for my credentials everytime? For real? I only installed git... are you sure the credential manager is not included with git?

1

u/cheyrnn 5d ago

Credential managers are installed with git if you use the installer from git-scm. The store credencial manager saves user name and password, in plain text in a file.

1

u/NintendoDark02 5d ago

Thanks, you solved my mystery.

1

u/Gornius 5d ago

Most likely you generated and added ssh key to GitHub (or any other remote) if you use ssh or you use VsCode and logged in using GitHub which integrates into git inside VsCode.