git - list branches forked from current branch -
i'm organising code having branches new features , creating child branches feature related bugs. when come feature branch need command tell me branches (bugs) forked it. if there no related branches can assume it's safe merge feature master.
just because can use git create infinite number of branches doesn't mean should. become unmanageable quite , potential benefits think you'll doing washed away irrelevance finding out how manage many branches.
to extent, doesn't matter; git commits form directed acyclic graph anyway; they'll have property whether name them individual branches or not. increasing branch count increase confusion.
anyway, answer question; given commit hash, can find out branches on doing:
git branch --contains hash
Comments
Post a Comment