Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git[远程拒绝]-无法锁定ref_Git_Github - Fatal编程技术网

Git[远程拒绝]-无法锁定ref

Git[远程拒绝]-无法锁定ref,git,github,Git,Github,我试图将本地分支推送到GitHub,但收到以下错误: mdepouw@my-很棒的pc MINGW64~/source/repos/GitHub/spottedmahn/aspnet/Docs(dev/test1) $git push--设置上游源dev/test1 计数对象:6,完成 增量压缩最多使用8个线程 压缩对象:100%(6/6),完成 写入对象:100%(6/6),501字节| 501.00kib/s,完成 总计6(增量5),重复使用0(增量0) 远程:解析增量:100%(5/5),

我试图将本地分支推送到GitHub,但收到以下错误:

mdepouw@my-很棒的pc MINGW64~/source/repos/GitHub/spottedmahn/aspnet/Docs(dev/test1)

$git push--设置上游源dev/test1

计数对象:6,完成

增量压缩最多使用8个线程

压缩对象:100%(6/6),完成

写入对象:100%(6/6),501字节| 501.00kib/s,完成

总计6(增量5),重复使用0(增量0)

远程:解析增量:100%(5/5),由5个本地对象完成

到 ! [远程拒绝]dev/test1->dev/test1(无法锁定ref'refs/heads/dev/test1':'refs/heads/dev'存在;无法创建'refs/heads/dev/test1')

错误:无法将某些引用推送到“”


原来在我分叉的repo中有一个名为
dev
的分支,我试图使用
dev/test1

将我的分支重命名为
dev2/test1
,推送成功


当我检查VS中的分支时,我注意到了它。我也不允许检查它