How to make Bitbucket display Raw File URL with branch instead of Hash commit

Chris Duong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2018

As been mentioned before https://community.atlassian.com/t5/Bitbucket-questions/URL-to-Bitbucket-Raw-File-without-commits/qaq-p/268818,

I think it will be more intuitive to share if Bitbucket always show Raw File URL (which normally very shorter), so how we can set this as default view in Bitbucket.

 

Thanks,

1 answer

3 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2018

Hi! In that case you can replace the 'src' in the URL for 'raw'. So it would look something like:

https://bitbucket.org/<username>/<repo-name>/raw/<branch>/<file-name>

Hope that helps!

Ana

Joris Vleminckx
Contributor
March 11, 2022

I can confirm this still works in 2022 :-)

tom_monnier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2023

in 2023 as well

Manuel Gil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2024

still in 2024

Manoj Paramsetti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 1, 2025

Still works in 2025 as well

Like RM Rahul likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events