Menu

gitpiper

Find branches containing a commit git Code Snippet in 2025

branchcommitintermediate

Last Updated: 22 April 2025

Prints all the branches containing a specific commit.

  • Use git branch --contains <commit> to see a list of all branches containing <commit>.
git branch --contains <commit>
git branch --contains 3050fc0d3 # patch-1 # patch-2

git snippet similar to Find branches containing a commit For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️