Preventing SourceTree from splitting up commit message?

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

https://github.com/thomthom/SKUI/commit/17d6b9f17d6ab358c29b793059c82300554a12f1

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: https://github.com/kieransenior/jquery-treetable/commit/980bdd3ab61d54c850ada6746aadeaa4967d7277. Same thing happens (not my commit). You can search throughout GitHub and see the same thing happening.

Cheers

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...

849 views 3 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