Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Git Basics Branches Managing Our Branches

Faisal Julaidan
Faisal Julaidan
13,944 Points

How could i know if it is a branch of already exited branch ? (explanation inside)

How could I know if the branch is a branch of branch. To demonstrate, in this course two branches have been made 1) foo_feature 2)bar_feature

what if I make a the bar_feature while I am inside the foo_feature that means I have a branch of branch. but when i type " git branch" to list out all the exited branches it does not show that

I know the question is a little bit confusing. my apologies I did my best to explain it.

I believe you are looking for git show-branch

1 Answer

Chet Bramble is completly correct.

$git show-branch

It displays the whole family tree, it uses indentation to signify direct descendants.