Does bitbucket support a co-author in a git commit message?


3 answers

0 vote
Daniel Wester Community Champion Feb 25, 2015

If Git supports it, then Bitbucket supports it... What are you trying to do? Usually a changes in Git only has one commiter. Git (and therefore Bitbucket) will track change sets levels and a push to Bitbucket (or any other remote repository) can have multiple commits in it...

See my comment below

You need special support on your web.

We encourage the use of Co-Authored-By: name <> in commit messages to indicate people who worked on a particular patch. It's a convention for recognizing multiple authors, and our projects would encourage the stats tools to observe it when collecting statistics.


As result, if you have something like that in commit message, you should insert link to this guy as second commit author (I am about the web-interface)

Yes, you can put that message into a Bitbucket commit.  It's simple text that goes in.

Yes, it goes into the commit message.


And I want to see workable links in my browser (first to Leonid Mamaev second one to Oleg Tsarev) when I open commit view in browser (I am about bitbucket web interface)

"Leonid Mamaev" on my picture is link (clickable) while "Oleg Tsarev" - just plain text

That would be an improvement request you need to make.

You'll need to explain how to implement it when

a) The co-author is NOT the committer, which is what the field is for

b) The co-author field is a random bit of text that may well not be a known user

So, you use "author" and "email" to detect commit author (I checked it, I can set author/email of my co-worker and commit would be linked to my co-worker profile).

If you see "Co-Authored-By:<TEXT>\n" in commit message, you should try to parse it to "USERNAME <EMAIL>" and than link USERNAME/EMAIL exactly as you make it for commit author/email

No need to tell me, put it in your improvement request.

How to make improvement request?

Just for the record (and another people from google) - created

Screenshot 2017-12-28 21.14.07_preview.pngDo you see?

I have only single author link - Leonid Mamaev, while I expecting to see TWO authors and BOTH should be link to bitbucket user profile

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,258 views 26 12
Join discussion

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