It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get a list of commits from SourceTree

I am viewing a branch in the log view and I have highlighted several commits in the 'Current Branch' view. How do I capture a list of all the commits selected?

Copy/Cut to the clipboard doesn't appear to get text (nothing in my editor when I paste it), and I can't see any option to generate a file or a view of this list of selected commits.

I would like a list with the commit id, the branch it was on, and the commit message at the least.

This would be handy when generating release notes, or reports.

6 answers

1 accepted

At present, SourceTree doesn't provide a way to copy & paste the commit text, nor is there a way to export a list. I suggest filing a feature request in our online issue tracker at - we take all user feedback and suggestions into consideration when determining our product roadmaps.

We definitely need this feature as many of our members are working late nights and weekends and we want to create visibility around this to share with upper mgmt. This feature will be very helpful in that regard


Still need it badly

Another vote for this feature from me... We also need to be able to report changes to non-developers in a periodic report, and either need to paste the commit messages into both places on each commit (to keep a running log), or copy and paste via the web interface one-by-one to update (or just to verify the log file completeness). Either way, it is a time consuming process that could be made so much easier if we could export this information, or even see it all at once via the web interface to copy and paste it just once.

To anyone coming here looking for a solution - I've just submitted a feature request over JIRA (the link was posted above, but it doesn't look like anyone wanted the feature enough to actually submit a request). 


I found this, Its not exactly from sourcetree but you can log out specific commit messages and such with git itself. See link here You could then pipe that output to a .txt file or something. Its a workaround if this feature never comes about.

For me this command worked once in the directory. This gave the commit hash with its commit message.

git log --pretty=oneline 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

2,835 views 0 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you