Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get list of branches emerging from any branch in git?

Tags:

git

How can I get list of branches emerging from any branch in git ?

Also what is the difference between fetch and pull command in git ?

like image 572
Rachel Avatar asked Feb 28 '23 23:02

Rachel


1 Answers

git fetch
git checkout <branch of interest>
git log --children <commit>

will print a list of descendant commits for a given one which partially answers your question.

pull does fetch and attempts to merge

fetch does not merge

like image 145
Evgeny Avatar answered May 21 '23 03:05

Evgeny