SourceTree can't use the commit template

I have saved my comment template in $HOME/.gitmessage.txt and in the terminal, run "git config --global  commit.template $HOME/.gitmessage.txt" and "git config commit.template $HOME/.gitmessage.txt". Now when I commit in command line or the source terminal, the comment template can take effect.

But when I click "Commit" in SourceTree GUI, the comment window is blank.

My operations is same to the answer of git config commit.template apparently not working, but still can't work.

I am using SourceTree 1.6.4

 

4 answers

same problem here

Apparently it was implemented here:

https://jira.atlassian.com/browse/SRCTREE-982

 

But it doesn't work in 1.6.x series, so...

I agree this doesn't seem to work.

We are implementing a standard template here and those who use TortoiseGit see the template but it never seems to show up in SourceTree.

This is on Windows in 1.6.14.0 using System Git 1.9.5

Any chance of a fix?

I'm using sourcetree version 2.4 on MacOSX 10.11.6, still not working ...
That's really annoying

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

651 views 0 4
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