setting up new git repos
#######################################################
# New machine (after installing and running git bash) #
#######################################################
# Check current settings
git config --list
# Read the docs
git help config
# Set global user settings:
# http://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
git config --global user.name "github username"
git config --global user.email "github email"
# Set the default text editor (optional)
git config --global core.editor "'C:/...editor.exe' -multiInst -nosession"
# setup ssh keys
# see gist 'git-ssh-keys.sh'
#######################################
# New repositories on a setup machine #
#######################################
# Clone existing remote repo
# go to directory with all repos
cd ~/repos
git clone git@github.com:<site-name>/<repo-name>.git
# Connect an existing repo to an existing remote origin
git remote add origin git@github.com:site-name/repo-name.git
# Connect an existing repo to a not-yet existing remote origin
# ...research
# Config for a single repository: just lose the --global
# http://stackoverflow.com/questions/8801729/is-it-possible-to-have-different-git-config-for-different-projects
cd ~/repos/repo-name
git config user.name "github username"
git config user.email "github email"