ps/Modules/Cole.PowerShell.Developer/TODO/Find all branches that reference a given.txt

6 lines
309 B
Plaintext
Raw Normal View History

2023-05-30 22:51:22 -07:00
Find all branches that reference a given change or commit message or hash
param -> number of commits back to check
param -> Folder to work in
parma -> target to search for
git branch | % { $branchName = $_.Trim(); if (!!(git log $branchName -n 5 --compact-summary | Select-String Headless)) { $branchName } }