'Atlassian Bitbucket and Confluence

I use bitbucket for my repos and confluence as wiki system.

In my repositories, i have text and markdown files. I would like to link to those files (tag) in confluence. When i go to bitbucket, i just get the repository url. Is there a way i go into this repository al like

Https://url-to-repo:1234/hash-or-tag/myfile.txt

I am used to svn where the svn repository is folder based... since git is not, is there some way to achieve my goal?

Ps: the extra-plus-option would be to not only being able to link to this files but to embed them as rendered text or even markdown but first i need to be able to even link to them.



Solution 1:[1]

You can use "raw" links to files provided by Bitbucket:

https://url-to-repo:1234/raw/branch-or-hash-or-tag/path-to-file.txt

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 andrybak