使用git出现的“’receive.denyCurrentBranch’ Configuration variable to ‘refuse’”问题及解决
本文部分转载自:使用git出现的“’receive.denyCurrentBranch’ Configuration variable to ‘refuse’”问题及解决 - china.ygw的日志 - 网易博客
问题描述:
使用git init创建了一个仓库。再git clone到其他位置,在clone的仓库使用git push的时候出现‘receive.denyCurrentBranch’ Configuration variable to ‘refuse’的错误。
解决方法:
创建git仓库时使用如下命令git --bare init --shared。
本文介绍在使用Git过程中遇到的特定错误“receive.denyCurrentBranch Configuration variable to refuse”,并提供了解决方案,即通过使用带有特定参数的命令初始化裸仓库。

800

被折叠的 条评论
为什么被折叠?



