Preventing SourceTree from splitting up commit message?

Have a look at this commit I made for a GitHub repo:

The title I entered was:

Ensuring that checking and unchecking methods of the Checkbox control work. Fixing #61.

But somewhere along the lines that got broken in two parts and the trailing part ended up in the description. This looks odd and it also prevented the issue from being automatically closed.

Is there a way to prevent SourceTree from splitting up the commit message?

1 answer

1 accepted

Hi Thomas,

This isn't anything to do with SourceTree. GitHub take a certain amount of characters/words and use that as the title. Anything beyond that is treated as part of the message. It's just the way they format commit messages. Take for example this: Same thing happens (not my commit). You can search throughout GitHub and see the same thing happening.


Oh, I was so sure I'd used longer commit messages than that. Maybe that was BitBucket then. My bad.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,233 views 4 2
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