Skip to content

Commit d5209cc

Browse files
committed
Edited content/v3/git/refs.md via GitHub
1 parent c40fc76 commit d5209cc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

content/v3/git/refs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ title: Git DB Refs API v3 | developer.github.com
66

77
## Get a Reference
88

9-
GET /git/:user/:repo/refs/:ref
9+
GET /repos/:user/:repo/refs/:ref
1010

1111
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:
1212

13-
GET /git/:user/:repo/refs/heads/sc/featureA
13+
GET /repos/:user/:repo/refs/heads/sc/featureA
1414

1515
### Response
1616

@@ -20,7 +20,7 @@ The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For
2020

2121
## Get all References
2222

23-
GET /git/:user/:repo/refs
23+
GET /repos/:user/:repo/refs
2424

2525
This will return an array of all the references on the system, including
2626
things like notes and stashes if they exist on the server. Anything in
@@ -30,7 +30,7 @@ most common.
3030
You can also request a sub-namespace. For example, to get all the tag
3131
references, you can call:
3232

33-
GET /git/:user/:repo/refs/tags
33+
GET /repos/:user/:repo/refs/tags
3434

3535
For a full refs listing, you'll get something that looks like:
3636

@@ -40,7 +40,7 @@ For a full refs listing, you'll get something that looks like:
4040

4141
## Update a Reference
4242

43-
PUT /git/:user/:repo/refs/:ref
43+
PUT /repos/:user/:repo/refs/:ref
4444

4545
### Paramaters
4646

@@ -60,7 +60,7 @@ out or setting it to `false` will make sure you're not overwriting work.
6060
### Response
6161

6262
<%= headers 201,
63-
:Location => "https://api.github.com/git/:user/:repo/ref/:ref" %>
63+
:Location => "https://api.github.com/repos/:user/:repo/ref/:ref" %>
6464
<%= json :ref => "refs/heads/master", "type" => "commit", \
6565
"sha"=>"827efc6d56897b048c772eb4087f854f46256132" %>
6666

0 commit comments

Comments
 (0)