Get a file or it's LFS object from a repository
GET
/repos/{owner}/{repo}/media/{filepath}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
Owner of the repo
repo
required
string
Name of the repo
filepath
required
string
Filepath of the file to get
Query Parameters
Section titled “ Query Parameters ” ref
string
The name of the commit/branch/tag. Default the repository’s default branch (usually master)
Responses
Section titled “ Responses ”Returns raw file content.
Media type application/octet-stream
file
APINotFound is a not found error response
Media type application/octet-stream
object
errors
Array<string>
message
string
url
string