gitlab set global username and password 1

gitlab set global username and password

git config --global credential.helper store
git pull # Ask for username and password, after that these are stored

Here is what the above code is Doing:
1. git config –global credential.helper store
This tells git to use the credential helper to store your username and password.
2. git pull
This will ask for your username and password.
After you enter your username and password, git will store them in a file called .git-credentials in your home directory.
The file will look something like this:
Now, every time you pull or push, git will use the stored credentials.

Similar Posts