git

git init
git add 'filename'
git commit -m 'machinelearning'
git remote add oringin https://github.com/linnabrown/machinelearning.git
git push origin master

加快gitpush的速度

SSH 有个功能是可以沿用已经存在的 host 连线,如果再连一次就会比较快。首先编辑 ~/.ssh/config 加上:

ControlMaster auto

ControlPath /tmp/ssh_mux_%h_%p_%r

接著让我们一直挂著 GitHub 的 SSH 连线……

ssh -N git@github.com

让我们实验看看效果如何:

使用前:

> time git pull

real    0m3.117s

user    0m0.055s

sys 0m0.045s

使用后:

> time git pull

real    0m0.765s

user    0m0.037s

sys 0m0.042s

http://www.cnblogs.com/ruofengzhishang/p/3842587.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容