Skip to content

Instantly share code, notes, and snippets.

@shield-9
Created March 8, 2014 10:46
Show Gist options
  • Save shield-9/9428608 to your computer and use it in GitHub Desktop.
Save shield-9/9428608 to your computer and use it in GitHub Desktop.
GitでPullを高速化する方法。.git/configを次のように編集
[remote "origin"]
+ url = git://github.com/shield-9/opcache-dashboard.git
+ pushurl = git@github.com:shield-9/opcache-dashboard.git
- url = git@github.com:shield-9/opcache-dashboard.git
@shield-9
Copy link
Author

shield-9 commented Mar 8, 2014

当然ですが、レポジトリまでのURLは環境にあった適切な情報に置き換えてください。
原理としてはpull時にread-onlyのgitプロトコルを使用し、push時にのみsshを使用することで高速化しています。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment