Files
30-seconds-of-code/snippets/branches-containing-commit.md
Angelos Chalaris fb4b6fbc8e Update covers
2023-02-16 22:24:37 +02:00

423 B

title, tags, cover, firstSeen, lastUpdated
title tags cover firstSeen lastUpdated
Find branches containing a commit branch,commit dark-leaves 2021-04-05T09:47:59+03:00 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