Git tip: Maintaining an SSH connection
Add
ControlPath /tmp/%h-%p-%r.sock
ControlMaster auto
to your .ssh/config (either on top or in the host entry), then use
ssh -N github
(or whichever the remote is) to open the SSH window and wait. If you’re pushing and fetching lots of little things — deleting several branches, say — then they’ll all run through the same connection, saving on overhead.