Which(if any) markup is accepted in commit messages?

I'd like to add some "markup" to my commits on bitbucket(e.g. bullet-lists and in-line code like ``SomeClass``).

Is it possible to do that? And if yes, which markup can be used? I tried to look at bitbucket 101 and related documentation but this is not mentioned(or I couldn't find where it is explained).

I tried using the same markup of the issue-tracker but it does not work, the commit message is rendered literally.

4 answers

1 accepted

This widget could not be displayed.

I don't think that this is available yet, as Mary mentioned only makrups to link issues, and trigger actions on JIRA tickets are available for now, however there's a similar feature request that you can vote for:

https://bitbucket.org/site/master/issue/2444/support-restructuredtext-and-perhaps-more

Hope it helps.

This widget could not be displayed.

Yes, you can use Bitbucket markdown in your commits mesasages. See this here:

https://confluence.atlassian.com/display/BITBUCKET/Can+I+use+markup+in+commit+messages

I've already tried and it does not work. For example, if I have a commit message like:

"Fixed this done that, **but** test X is still failing"

The "but" will not be shown in bold on bitbucket, you will simply see the literal "**but**".

This widget could not be displayed.

Yes, you can use Bitbucket markdown in your commits mesasages. See this here:

https://confluence.atlassian.com/display/BITBUCKET/Can+I+use+markup+in+commit+messages

This widget could not be displayed.

You can only use the Bitbucket markdown; regular standard markdown doesn't work. So, you can created a commit messsage like this:

I fixed issue #345 in this set of code.

The issue #345 will be linked in the code. You can only refer to objects within the repo you are committing to. So, for the dvcsproject repo, you can refer to issues, other pull requests, and other commits.

You can mention other Bitbucket users.

So, in order words: no you cannot use any markup but only link to issue and that other things.

Anyway I find strange that the comments on a commit can use bold/bullet lists etc. while the commit itself is just rendered as plain text.

Correct, you can only use the Bitbucket markdown. The issue Razaq points to is resolved. You should create another one outlining what kind of enhancement you would like to see:

https://bitbucket.org/site/master/issues

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,327 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you