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 jira.atlassian.com - 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 https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History. 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 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...

832 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