Speeding up Git with SSH Config
I’ve been snooping around Paul Irish’s dotfiles and discovered this gem. I instantly noticed the difference and absolutely needed to share this with the rest of the world!
# copy to ~/.ssh/configHost github.com ControlMaster auto ControlPersist 120Host * # Always use SSH2. Protocol 2 # Use a shared channel for all sessions to the same host, # instead of always opening a new one. This leads to much # quicker connection times. ControlMaster auto ControlPath ~/.ssh/control/%r@%h:%p ControlPersist 1800 # also this stuff Compression yes TCPKeepAlive yes ServerAliveInterval 20 ServerAliveCountMax 10