Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f57e50

Browse files
committed
document deleting a ref
1 parent8a2cbe1 commit3f57e50

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

‎content/v3/git/refs.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,19 @@ out or setting it to `false` will make sure you're not overwriting work.
8080
:Location => "https://api.github.com/git/:user/:repo/commit/:sha" %>
8181
<%= json:ref %>
8282

83+
##Delete a Reference
84+
85+
DELETE /repos/:user/:repo/git/refs/:ref
86+
87+
Example: Deleting a branch:
88+
89+
DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a
90+
91+
Example: Deleting a tag:
92+
93+
DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0
94+
95+
###Response
96+
97+
<%= headers 204 %>
8398

‎content/v3/oauth.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ You can only send one of these scope keys at a time.
222222

223223
###Response
224224

225-
<%= headers 204 %>
225+
<%= headers 204 %>
226226

227227
##More Information
228228

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp