Assume I know a JIRA number, I would like to find all the files which were committed against said JIRA. It looks like my option is to use grep for the commit message, is that correct?
git log --grep=JIRA-12345
From the command line that is correct. Take a look at the example in Advanced Git log:
To filter commits by their commit message, use the
--grepflag. This works just like the
--authorflag discussed above, but it matches against the commit message instead of the author.
For example, if your team includes relevant issue numbers in each commit message, you can use something like the following to pull out all of the commits related to that issue:
git log --grep="JRA-224:"
You can also pass in the
git logto make it ignore case differences while pattern matching.
Hopefully this helps.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
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!
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