Files
30-seconds-of-code/git/s/branches-containing-commit.md
Angelos Chalaris 5c913d20bd Reorganize snippets
2023-05-03 21:19:02 +03:00

417 B

title, type, language, tags, cover, dateModified
title type language tags cover dateModified
Find branches containing a commit snippet git
branch
commit
dark-leaves 2021-04-13T21:10:59+03:00

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