Introduction
When working with Git, you often create multiple branches to work on different features or fixes. Listing branches helps you see all the branches available in your project so you can switch or manage them easily.
When you want to see all the branches you have created locally in your project.
When you want to check which branch you are currently working on.
When you want to see all branches available on the remote repository.
When you want to clean up old branches by seeing which ones exist.
When you want to verify that a new branch was created successfully.