git init git config --add receive.denyCurrentBranch ignore git reset --hard
查看.git/config文件后面存在如下代码
[receive] denyCurrentBranch = ignore
git clone user@git.example.com:/srv/git/my_project.git