Shortcut

GitHub Switch Branch or Tag Shortcut

The GitHub shortcut to switch branch or tag is w on Windows. It's the same on Mac.

Quick Answer

Windows
w
Mac
w
Web
Not confirmed yet
GitHubShortcut

Switch Branch or Tag

Windows
w

Opens the branch and tag switcher for the current repository.

Learn More

How to switch branch or tag in GitHub

  1. Open GitHub and go to where you want to switch branch or tag.
  2. Press w on Windows or w on Mac.

GitHub Switch Branch or Tag Shortcut for Windows

Press w.

GitHub Switch Branch or Tag Shortcut for Mac

Press w.

GitHub Switch Branch or Tag Shortcut for GitHub Web

We haven't confirmed a GitHub Web shortcut for this yet.

Related Keyboard Shortcuts

Frequently asked questions

What is the GitHub switch branch or tag shortcut?

On Windows, press w. On a Mac, press w.

Is there a Mac shortcut to switch branch or tag in GitHub?

Yes: w.

Does it work in GitHub for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify