Skip to content

Instantly share code, notes, and snippets.

@foru17
Created April 11, 2014 10:50
Show Gist options
  • Save foru17/10457857 to your computer and use it in GitHub Desktop.
Save foru17/10457857 to your computer and use it in GitHub Desktop.
创建git HTTP协议仓库
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