git文档实时更新显示

git文档实时更新显示

采用非空仓库,也可采用空仓库

  • 采用非空仓库,只需要一个目录
  • 采用空仓库,需要一个bare仓库,另外需要一个工作目录

将vk加入用户组

usermod -G -a vk,git vk
newgrp git

设置git远程仓库权限问题

git init  --shared[=(false|true|umask|group|all|world|everybody|0xxx)]
如果仓库已经启用,在远程仓库目录下更改 git 配置的语法:

git config core.sharedRepository [(false|true|umask|group|all|world|everybody|0xxx)]



git init --shared=0770
//初始化仓库时
git config core.sharedRepository 0770
//已启用后配置

hook/post-update

git reset --hard HEAD 
ps -aux|grep "gitbook serve"|awk '{print $2}'|xargs kill

git用户也需要安装环境

git用户也需要nodejs和gitbook的环境。

Guess you like

Origin blog.csdn.net/V__KING__/article/details/116989085