# git switch

*noun*

say it: **“git SWICH”** **/ɡɪt swɪtʃ/**

The Git command that moves you to another branch, or creates a new one with -c.

## What does **git switch** do?

**git switch** — Changes the current branch or creates and switches to a new branch.

```bash
git switch feature/search
```

## In a sentence

- “I used **git switch** main to go back to the main branch.”

Level: Apprentice · [More Git terms at this level](https://www.ask-codey.com/glossary?category=git&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/git-switch
