← All commands
Topic hub Developer Tools
Windows Linux Developer Tools Git

Windows git branch on Windows equivalent in Linux

Lists local and remote branches.

Windows git branch on Windows
Linux equivalents
Debian/Ubuntu install with apt when missing
git branch -a
Fedora install with dnf when missing
git branch -a
Arch install with pacman when missing
git branch -a

Overview

What this command does

Lists local and remote branches.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

List Git branches

Lists local and remote branches.

git branch -a

List Git branches

git --help

Show command help when supported

man git

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

git branch -a

Walkthrough

Examples with explanations

# Windows equivalent: git branch on Windows
git branch -a

Reference

Common options and variations

Command or optionUse
git branch -aList Git branches
git --helpShow command help when supported
man gitOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu install with apt when missing git branch -a Same command on this distribution.
Fedora install with dnf when missing git branch -a Same command on this distribution.
Arch install with pacman when missing git branch -a Same command on this distribution.

Keep learning

Related Developer Tools commands