What are the consequences of using receive.denyCurrentBranch in Git?

后端 未结 6 1206
借酒劲吻你
借酒劲吻你 2020-11-29 20:54

I have a Git repository. I have cloned the repository and can commit my local changes. When I push my changes to the server it works.

As soon as I create a branch, I

6条回答
  •  长情又很酷
    2020-11-29 21:34

    You should have a bare repository on the server, not one with a checked-out working tree. Git is telling you it refuses to overwrite the branch that is currently checked out on the server.

    See this answer for information on how to convert your non-bare repository on the server to a bare one.

提交回复
热议问题