Pushing new Branch
Created by: MrKeiKun
Summary: Unable to push a branch where name is "sub1/sub2". Yet gitlab UI dashboard tells the branch is pushed. Yet I tested it via github, It works fine~
Procedure:
- git checkout -b sub1/sub2 origin/master
- git push origin sub1/sub2
Log:
[root@devel hercules]# git push origin sub1/sub2
Counting objects: 152, done.
Compressing objects: 100% (69/69), done.
Writing objects: 100% (123/123), 565.47 KiB, done.
Total 123 (delta 63), reused 114 (delta 54)
error: unable to resolve reference refs/heads/sub1/sub2: Not a directory
remote: error: failed to lock refs/heads/sub1/sub2
To [email protected]:group/project.git
! [remote rejected] sub1/sub2 -> sub1/sub2 (failed to lock)
error: failed to push some refs to '[email protected]:group/project.git'