Skip to content

Instantly share code, notes, and snippets.

@brianjang
Last active October 31, 2019 13:10
Show Gist options
  • Save brianjang/044df539dfc814858b993dfbfae49db4 to your computer and use it in GitHub Desktop.
Save brianjang/044df539dfc814858b993dfbfae49db4 to your computer and use it in GitHub Desktop.
Git – Config Username and Password (Store Credentials)
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