Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link another commit's reference in commit message gitlab

I know we can mention issue in commit messages as'#issue_no', but is it possible to link it to another commit in gitlab?

either mention commit SHA or complete commit URL in the commit message?

like image 796
savinaya Avatar asked Mar 07 '26 18:03

savinaya


1 Answers

See the documentation: https://docs.gitlab.com/user/markdown/#gitlab-specific-references

References Input Cross-project reference Shortcut inside the same namespace
Commit (specific) 9ba12248 namespace/project@9ba12248 project@9ba12248

So you can just use the commit hash within one project.

like image 83
mkrieger1 Avatar answered Mar 10 '26 08:03

mkrieger1