git init
允许远程提交代码
git config receive.denyCurrentBranch ignore
vim .git/hooks/post-update
#!/bin/sh unset GIT_DIR cd .. git checkout -f
chmod +x .git/hooks/post-update