GitHub
Switch to a branch or tag
To switch to a branch or tag in GitHub, press W. The keys are the same on a Mac. It works in the browser version.
Where it works: Repository code view
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Web app | W |
| Windows | Web app | W |
Where this comes from
Keyboard shortcuts - GitHub Docs
Documentation checked on 2026-09-12. That is a documentation review, not a test run inside the application.