how to reference branch in gitlab markdown?

Viewed 8917

I would like to use gitlab markdown syntax to refer to a branch in README.md file. I tried @develop, but it doesn't work. Any ideas?

1 Answers

Not exactly what you were looking for but at least something - try this markdown construct.

[myReference](../../tree/myBranch/myPath/myFile.cpp#L310-313)

This will navigate you away from the main branch towards the branch you want (myBranch in this example)

However if the branchname changes then things will be broken. I really feel this functionality should be added to gitlab in near future

Related