DEV Community

Discussion on: Git Explained: Proper Team Etiquette

Collapse
 
milu_franz profile image
Milu • Edited

Hi Dani!

The command git branch or git branch —list shows you all the branches you are keeping up with locally. You also have the option to give this command an argument in order to only see a group of branches. For instance, if I followed the token advice mentioned in this article, I should have some branches that start with feature/name-of-branch and other that start with bug/. If I want to only list all the branches that add a feature and ignore all the bug branches, I can give it an argument that asks for all the branches that start with feature/* (the asterisk is like a wild card).

I hope this explanation helps clarify that command.

Also, thank you for the suggestion, I didn’t know this before you mentioned it but you can do a “series” of posts and they all link to each other at the top of the page. So I took care of that :) Thank you!

Collapse
 
damsalem profile image
Dani Amsalem

Right on! Thanks for the detailed explanation of git branch and for making this into a series :)