Git Login Issues? Keeps Asking for a Username & Password? Permanently Set Credentials in Git Config

Cameron McKenzie
Cameron McKenzie
3.8 هزار بار بازدید - 6 ماه پیش - Trying to do a Git
Trying to do a Git login? Why is Git always asking for my password? That's a question I often hear from users who don't have a credential helper or credential store set up to save their Git username and password.

So if you need to save your Git username and password so GitHub, GitLab or Bitbucket doesn't keep asking you for your credentials every time you push or pull, this quick Git credentials tutorial is for you.

It's actually not hard to permanently save Git username and password fields and even cache them if you don't have any other credential stores set up. Just do this command:

git config --global credential.helper store

Then the next time you push or pull, you'll be asked for your Git username and password, which will get saved in the .gitcredentials file in the user's home directory.

There are some corner cases to be aware of, so you might want to watch this full video tutorial on how to save your username and password in Git. The corner cases are nasty!

But corner cases aside, it's easy to make Git remember your username and password permanently. Just configure your git credentials and have git save and store credentials for remote Git repos like GitHub, GitLab, Bitbucket and Codecommit.

0:00 Git username password intro
0:15 Git config store command
0:33 Introduction to me
1:06 Clone a git repository
1:43 Git credential store
2:34 Git config scopes
3:36 Git username password fields
4:25 Create a Git access token
5:30 Save git username password
7:00 Global Git Config
7:40 Git Credentials File
8:35 Plain text Git password
9:04 Save credentials wrap up
10:03 Mojo programming language
6 ماه پیش در تاریخ 1402/11/01 منتشر شده است.
3,854 بـار بازدید شده
... بیشتر