1. branch for fixing issue
1 | git checkout -b fix-bug |
2. Pull a remote branch
Ensure in advance that you ref all branches in .git/config
, then
1 | git fetch --all |
A successful example:
TroubleShooting: Cannot git pull from github
1 | kex_exchange_identification: read: Connection reset by peer |
Try ssh -T git@github.com
and then git pull
.
3. prevent typing password in http protocol
3.1 Git Credential store
1 | git config --global credential.helper store |
After enabling this you will be prompted for your creds on your next commit. your token will be stored in plain text in ~/.git-credentials
.
3.2 Microsoft Git Credential Manager
Step 1: aur install git-credential-manager-core-bin
developed by Microsoft then config:
1 | git-credential-manager-core configure |
Step 2: For Linux system, a default strategy for storing credential passwords doesn’t exist. So one of the four options of storing credentials should be configured by setting the GCM_CREDENTIAL_STORE
environment variable or credential.credentialStore
git configuration setting.
environment variable way:
1 | export GCM_CREDENTIAL_STORE=secretservice # secretservice / gpg / cache / plaintext |
Or
1 | git config --global credential.credentialStore secretservice # secretservice / gpg / cache / plaintext |
Comments
shortname
for Disqus. Please set it in_config.yml
.