Last active
March 23, 2022 14:08
-
-
Save maxRN/38312c47349b021be8f607294d00c9bd to your computer and use it in GitHub Desktop.
Search through git log history by regex pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git log --extended-regexp --grep="JIRA-[[:digit:]]+" --pretty="format:%h %ar %n >>%s<< %n" | |
# %h = commit ID short | |
# %ar = date | |
# %s = subject line | |
# %n = newline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment