Created
March 8, 2014 10:46
-
-
Save shield-9/9428608 to your computer and use it in GitHub Desktop.
GitでPullを高速化する方法。.git/configを次のように編集
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当然ですが、レポジトリまでのURLは環境にあった適切な情報に置き換えてください。
原理としてはpull時にread-onlyのgitプロトコルを使用し、push時にのみsshを使用することで高速化しています。