Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reference branch in gitlab markdown?

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?

like image 995
Lukasz Ochmanski Avatar asked Jun 19 '20 09:06

Lukasz Ochmanski


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

like image 63
hillbilly Avatar answered Sep 19 '22 14:09

hillbilly