git push 首次提交报错问题解决

刚配置好的 git 仓库服务器,首次提交的时候会报如下错误:

remote: error: refusing to update checked out branch: refs/heads/master
***

需要配置一下 git 的接收配置,执行如下命令即可正确提交:

git config receive.denyCurrentBranch ignore
除非注明, 风波竹林 文章均为原创,转载请以链接形式标明本文地址
本文地址: https://blog.fbzl.org/git-push首次提交报错问题解决/

发表评论