Skip to content

How could i get a permanent link for raw file? #22537

Answered by byrneh
Lotaristo asked this question in New to GitHub
Discussion options

You must be logged in to vote

HI @Lotaristo,

a worked example for you using a PUBLIC repository, please note you SHOULD use the same URL format for a PRVATE repository and cannot use the short lived expiring token shown in the browser session passed as a query parameter but will need to create a personal access token with permissions.

GitHub file in browser

https://github.com/octocat/Hello-World/blob/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/README

RAW format URL

https://raw.githubusercontent.com/octocat/Hello-World/master/README

If your repository file is a PRIVATE visibility repository you will need to pass a personal access token with scope permission to READ from the repository in an authentication header by ad…

Replies: 13 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@DevBadger10
Comment options

@magendirans
Comment options

@eldepor
Comment options

Comment options

You must be logged in to vote
1 reply
@DevBadger10
Comment options

Comment options

You must be logged in to vote
1 reply
@DevBadger10
Comment options

Comment options

You must be logged in to vote
1 reply
@shubhamchopade
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ntriisii
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment