``` [root@img hooks]# cat post-receive #!/bin/bash curl http://47.52.150.74:5000/hookssync/9901b6deb47111e7b832704d7b885ead chmod 755 -R ``` 权限问题导致的版本库冲突 忽略版本权限问题 $ git config core.filemode false // 当前版本库 $ git config --global core.fileMode false // 所有版本库 dev 工作流程 webhook部署到 生产服务器中 配置同步方式 python confapi.py --uid=仓库识别码 --name=仓库名字 --path=需要代码路径 --ip 有权限进行访问的IP,设置为git服务器的IP 访问 http://47.52.150.74:5000/hookssync/uid 等待一段时间后可以同步 git rm --cache 强制合并 git fetch origin master git reset --hard origin/master