How to make git push run faster

Is there a way to tell git to redirect changes to a remote github server faster. This takes more time (~ 8-10 seconds) even with minor changes in several files in the application with a minimum number of rails.

+4
source share
2 answers

Try creating the ~/.ssh/control , and then add it 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 for github within one hour, eliminating the time required to re-authenticate during that time.

+9
source

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

+1
source

All Articles