Save credentials using git config --global user.name #22327
-
I don’t want git to ask me for my username (or even my password) every time i push, pull or clone. Whenever I clone a personal repository i already do https://gihub.com/Username/Repo so it won’t ask me there but if I do
and try to push to that same repository it promts me to enter in anyway. How do I prevent that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can use:
This command prevent git to ask username and password, not forever but with a default limit to 15 minutes. To change this limit you can run:
This move the default limit to 1 hours. You can find all this information on help.github. Hope this helps 🙂 -Gabriele-
|
Beta Was this translation helpful? Give feedback.
-
So the user.name has no effect on pushing or pulling? That’s unfortunate but okay. |
Beta Was this translation helpful? Give feedback.
-
The link that I gave you said: |
Beta Was this translation helpful? Give feedback.
You can use:
This command prevent git to ask username and password, not forever but with a default limit to 15 minutes.
To change this limit you can run:
This move the default limit to 1 hours.
You can find all this information on help.github.
Hope this helps 🙂
-Gabriele-