Git推送报错:The remote end hung up unexpectedly的解决办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33008701/article/details/56839557

项目中推送代码到git时报错

 

 

Push failed

Failed with error: The remote end hung up unexpectedly

The remote end hung up unexpectedly

RPC failed; HTTP 401 curl 22 The requested URL returned error: 401

 

原因:管理员将项目中的分支保护中当前分支修改为了只读分支。改为常规分支就解决了问题。

 

猜你喜欢

转载自blog.csdn.net/qq_33008701/article/details/56839557