Git Command Branch

Branch lets us create; delete & switch branches in our repo.


Terminal example:

Terminal
>
git branch
> Output:

lists the branches then we can type q to exit.

Some git branches examples:


git branch
# lists all branches & displays what current branch we are on by an * prefixing the name

git branch -D nameOfBranch
# -D flag will delete a branch

git branch -vv
# this -vv flag is Doubly verbose & provides us more info about the branch