小编tgf*_*tgf的帖子

git pull in hooks/post-receive失败

在服务器上,/ home/git/xxx/hooks/post-receive:

#!/bin/bash

cd /var/www/xxx
git pull
Run Code Online (Sandbox Code Playgroud)

在服务器上,/ var/www/xxx是这样创建的:

cd /var/www
git clone /home/git/repositories/xxx.git
Run Code Online (Sandbox Code Playgroud)

当我在客户端上运行"git push"时,收到以下消息:

remote: fatal: Not a git repository: '.'
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

git git-pull githooks git-post-receive

2
推荐指数
1
解决办法
3208
查看次数

标签 统计

git ×1

git-post-receive ×1

git-pull ×1

githooks ×1