git config --list
git config --global user.name "display-name"
git config --global user.email "github-email"
git config --global http.sslbackend schannel
git config --global http.sslbackend openssl
git config --global --list
git config --local --list
SSH config file to setup and use one or more github account(s)
# Personal github account ~ uses public key
Host gh_personal
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gh_personal
# Work github account ~ uses public key
This file contains hidden or 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
@ECHO OFF | |
REM This bat file iterates on the folders in this directory and | |
REM makes a "git pull" over every folder (only "git repos") | |
FOR /f "delims=" %%D IN ('dir /a:d-h /b') DO ( | |
CD %%~D | |
IF EXIST ".git" ( | |
ECHO Repo: %%D | |
git pull |