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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ title: Git Refs
13
13
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 `skunkworkz/featureA` would be:
14
14
15
15
GET /repos/:owner/:repo/git/refs/heads/skunkworkz/featureA
16
+
17
+
If the `ref` doesn't exist in the repository, but existing refs start with `ref` they will be returned as an array.
0 commit comments