You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v3/git/refs.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ title: Git DB Refs API v3 | developer.github.com
6
6
7
7
## Get a Reference
8
8
9
-
GET /git/:user/:repo/refs/:ref
9
+
GET /repos/:user/:repo/refs/:ref
10
10
11
11
The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For example, the call to get the data for a branch named `sc/featureA` would be:
12
12
13
-
GET /git/:user/:repo/refs/heads/sc/featureA
13
+
GET /repos/:user/:repo/refs/heads/sc/featureA
14
14
15
15
### Response
16
16
@@ -20,7 +20,7 @@ The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For
20
20
21
21
## Get all References
22
22
23
-
GET /git/:user/:repo/refs
23
+
GET /repos/:user/:repo/refs
24
24
25
25
This will return an array of all the references on the system, including
26
26
things like notes and stashes if they exist on the server. Anything in
@@ -30,7 +30,7 @@ most common.
30
30
You can also request a sub-namespace. For example, to get all the tag
31
31
references, you can call:
32
32
33
-
GET /git/:user/:repo/refs/tags
33
+
GET /repos/:user/:repo/refs/tags
34
34
35
35
For a full refs listing, you'll get something that looks like:
36
36
@@ -40,7 +40,7 @@ For a full refs listing, you'll get something that looks like:
40
40
41
41
## Update a Reference
42
42
43
-
PUT /git/:user/:repo/refs/:ref
43
+
PUT /repos/:user/:repo/refs/:ref
44
44
45
45
### Paramaters
46
46
@@ -60,7 +60,7 @@ out or setting it to `false` will make sure you're not overwriting work.
0 commit comments