Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6989

Closed
Open
Created May 16, 2014 by Administrator@rootOwner

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:

  1. git checkout -b sub1/sub2 origin/master
  2. 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'
Assignee
Assign to
Time tracking