Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make git push run faster [closed]

Is there a way to tell git to push the changes to the github remote server a little faster. It takes a longer time (~8-10 secs) even for minor changes on few files in a bare minimal rails application.

like image 245
Joe Avatar asked Jan 05 '13 10:01

Joe


2 Answers

Try creating a directory ~/.ssh/control and then adding this to your ~/.ssh/config:

Host github.com
  ControlMaster auto
  ControlPath ~/.ssh/control/%r@%h:%p
  ControlPersist 3600

This will cause ssh to reuse existing connections to github for one hour, which will eliminate the time taken to reauthenticate during that time.

like image 110
Robie Basak Avatar answered Oct 20 '22 18:10

Robie Basak


If you are using http/https protocol, you should try ssh protocol.

like image 1
Luigi R. Viggiano Avatar answered Oct 20 '22 18:10

Luigi R. Viggiano