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 create a patch file for each of multiple commits

I would like to create separate patch files for each of several commits, but can not find a way to select multiple commits in the create patch panel.

  1. As depicted in the following screenshot of my Create Patch…/Patch From Commits, I have ticked the Create a separate patch file per commits (append sequence number to filename) checkbox so that I could create a series of patch files.  I have selected commit "**Fix Some Analyze…" and would have liked to select commit "**Fix Issue #005…" also. But, there doesn't appear to be any way to select more than one commit.
  2. If I proceed with 1., a commit file named "patch0001.diff" is created from commit "**Fix Some Analyze…" and the Patch From Commits panel is dismissed.
  3. If I return to Create Patch…/Patch From Commits, the panel is set to its default state with the Create a separate patch… checkbox unticked and the Patch File: path reset to the repository.
  4. If I reset the panel as in 1. and this time select a different commit, "**Fix Issue #005…", then create the patch, the patch file "patch0001.diff" is replaced with the  patch from commit "**Fix Issue #005…".  I was expecting another patch file to be created titled "patch0002.diff".

I just don't see how one is supposed to utilize the Create a separate patch file per commits (append sequence number to filename) checkbox to create a sequence of patches.


Screen Shot 2018-04-10 at 11.49.34 AM.png


1 answer

1 accepted

1 vote
Answer accepted
minnsey Atlassian Team Apr 11, 2018


Holding the ctrl key while clicking on the commit should allow you to select multiple commits.

On the Mac the CTRL key doesn't work, but the CMD key does!

Before I posted the question, I thought that I tried all the modifier keys many different ways, but I apparently overlooked the CMD key.

Holding the CMD key down while clicking on commits does, indeed, add to the selection.  Then proceeding with Create Patch…/Patch From Commits as I detailed in 1. above does produce a series of patch files, each containing a different commit.

Thanks Michael.  Your answer moved me off the dime.

minnsey Atlassian Team Apr 11, 2018

Ah missed the mac aspect. Glad you are back up and running

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

4,910 views 0 12
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