How do you view your Git branch list?

Before you perform actions on your branches in your Git repository, it’s important to know which branch you’re targeting. If you aren’t using a Git GUI, like GitKraken, to visualize your work, it’s likely you won’t be able to remember the names of each local branch, especially in a large Git repository.

To view a list of your local Git branches, you can run

git branch

at any point during your workflow.

To view a list of your remote Git branches, you can run

git branch -r

when working with remote branches in your Git repository.

Additional Learning Git Resources: Branching in Git | Git Branch Tutorial | How to Delete a Local Git Branch | How to Delete a Remote Git Branch

Originally published at https://gitkraken.com.