Method: Gitlab::Client::Branches#create_branch
- Defined in:
- lib/gitlab/client/branches.rb
permalink #create_branch(project, branch, ref) ⇒ Gitlab::ObjectifiedHash Also known as: repo_create_branch
Creates a repository branch. Requires Gitlab >= 6.8.x
80 81 82 |
# File 'lib/gitlab/client/branches.rb', line 80 def create_branch(project, branch, ref) post("/projects/#{url_encode project}/repository/branches", query: { branch: branch, ref: ref }) end |