How to get list of all branches created off a GIT branch (get all sub branches of a branch) -
is there way list of branches created off branch in git.
for e.g. if have rel2 branch created off master, , have sp1, sp2 , sp3 created rel2 branch.
is there command in git sp1, sp2 , sp3 output if give rel2 input ?
just take commit want , do
git branch --contains commitid
in case can do
git branch --contains rel2
this list branches have given commit in history.
to list remote branches do
git branch -r --contains commitid
Comments
Post a Comment