git 服务器搭建(自家用) luckduvip 2021-02-04 84 阅读1分钟 命令行 cd /you part git init git config receive.denyCurrentBranch ignore git config core.worktree /you part git config --bool receive.denyNonFastForwards false 修改钩子 cd .git/hooks vi post-receive #!/bin/sh unset GIT_DIR cd .. git checkout -f