我的系统是centos 7.4和git 1.8.3。
this post
sparse-checkout
在我的
remoteserver
裸回购协议如下:
!README.md
!.scrutinizer.yml
!.idea/*
!.idea_modules/*
/*
我认为许可是正确的:
[root@localhost info]# ls -al
total 8
drwxr-xr-x 2 root root 44 Jan 28 11:17 .
drwxr-xr-x 7 root root 132 Jan 28 11:33 ..
-rw-r--r-- 1 root root 240 Jan 28 14:33 exclude
-rw-r--r-- 1 root root 58 Jan 28 11:17 sparse-checkout
当我
git push remoteserver master
,
post-receive
钩子将运行:
git --work-tree="$DEPLOY_DIR" --git-dir="$GIT_DIR" checkout -f
问题是:
README.md
和
.scrutinizer.yml
还在结帐。
自述文件
和
未按中的设置签出
?