I noted that in BitBucket when your commit log contains a number like #12 this number is linked to the bug number 12.
#12
I found this feature interesting, and
Redmine has configurable options. Most used ones are: