Created
April 11, 2014 10:50
-
-
Save foru17/10457857 to your computer and use it in GitHub Desktop.
创建git HTTP协议仓库
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
cd /var/www/htdocs/ | |
$ git clone --bare /path/to/git_project gitproject.git | |
$ cd gitproject.git | |
$ mv hooks/post-update.sample hooks/post-update | |
$ chmod a+x hooks/post-update | |
$ git update-server-info #最后还要执行一下才行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment