Last active
October 31, 2019 13:10
-
-
Save brianjang/044df539dfc814858b993dfbfae49db4 to your computer and use it in GitHub Desktop.
Git – Config Username and Password (Store Credentials)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config credential.helper store | |
git config --global credential.helper store (for globally) | |
for different repositories on gitlab.com and github.com | |
git config credential.gitlab.com.useHttpPath true | |
git config credential.github.com.useHttpPath true | |
--- or | |
git config --global credential.gitlab.com.useHttpPath true | |
git config --global credential.github.com.useHttpPath true | |
--- result | |
vim ~/.git-credentials | |
https://<your_id>:<your_password>@gitlab.incowiz.com | |
https://<your_id>:<your_password>@github.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment