Join us December 10-11, 2024
| Developer Experience + AI Conference
Register now free →
Search
Close this search box.

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 the GitKraken Git GUI 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.

First let’s show how easy it is to review your branch list in GitKraken, and then we’ll show an example in the command line.

The CLI doesn’t give you the level of visibility offered by GitKraken. Get immediate context of your remotes, including remote branches and forks, and see who is making changes to which files.

How do you see your Git branch list in GitKraken?

When you open your Git repository in GitKraken, the left panel will organize your local and remote branches and show you which branch is checked out.

Git branch list GitKraken

Additionally, the branches are visually displayed in the graph, giving you a quick idea of who has made what changes and when.

Double click on any branch name in the left panel or the graph to checkout the Git branch. You can even double click on a remote branch and GitKraken will both create the local version of that branch and then check it out for you. Magically convenient. ✨

Getting a visual on your remotes gives you a fast, quick preview into what your collaborators are working on and confirms whether any of your local branches are behind. 

GitKraken’s easy-to-read commit graph will enable you to visualize branch structure and commit history like you never thought possible, empowering beginners and advanced users alike to level up your Git workflow.

How do you view your Git branch list in the command line?

While not as visual as GitKraken, you can still get information about your branches by running commands in the CLI. 

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

git branch

at any point during your workflow.

Git Branch in the CLI

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 Resources

Table of Contents

Make Git Easier, Safer &
More Powerful

with GitKraken

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli