Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
d7afdab7
Commit
d7afdab7
authored
Apr 01, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for create branch via api
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
33a00cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
doc/api/branches.md
doc/api/branches.md
+31
-0
No files found.
doc/api/branches.md
View file @
d7afdab7
...
@@ -165,3 +165,34 @@ Parameters:
...
@@ -165,3 +165,34 @@ Parameters:
"protected"
:
false
"protected"
:
false
}
}
```
```
## Create repository branch
```
POST /projects/:id/repository/branches
```
Parameters:
+
`id`
(required) - The ID of a project
+
`branch_name`
(required) - The name of the branch
+
`ref`
(required) - Create branch from commit sha or existing branch
```
json
{
"name"
:
"my-new-branch"
,
"commit"
:
{
"id"
:
"8848c0e90327a0b70f1865b843fb2fbfb9345e57"
,
"message"
:
"Merge pull request #54 from brightbox/use_fog_brightbox_module
\n\n
Update to use fog-brightbox module"
,
"parent_ids"
:
[
"fff449e0bf453576f16c91d6544f00a2664009d8"
,
"f93a93626fec20fd659f4ed3ab2e64019b6169ae"
],
"authored_date"
:
"2014-02-20T19:54:55+02:00"
,
"author_name"
:
"john smith"
,
"author_email"
:
"john@example.com"
,
"committed_date"
:
"2014-02-20T19:54:55+02:00"
,
"committer_name"
:
"john smith"
,
"committer_email"
:
"john@example.com"
},
"protected"
:
false
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment