【发布时间】:2013-01-05 09:06:44
【问题描述】:
我在我的 ubuntu 服务器中设置了一个裸仓库。
在我将裸 git repo 推送到服务器后:
$ git push origin master
我希望使用最新推送更新我的非裸仓库的内容,如图所示,其中非裸仓库是我名为 workfiles 的实际工作目录。
$ cd /central/workfiles
$ git pull
$ exit
我听说过 post-receive 挂钩,但不知道如何设置。 我怎样才能做到这一点。
【问题讨论】: