---
title: "Discussion on \"git switch\" | Hashnode"
description: "Discussion on \"git switch\". I discovered a fun git command that I wasn't aware of before. \ngit switch -c <new-branch>\nUsing git switch, you can take existing, uncommitted files and move them to a new branch. Say you're working in the master branch and want to move those changes..."
url: "https://hashnode.com/posts/git-switch/60895ebc1bb72c581861fcca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [git switch](https://blog.ajbothe.com/git-switch?utm_source=hashnode&utm_medium=feed)

I discovered a fun git command that I wasn't aware of before. git switch -c <new-branch> Using git switch, you can take existing, uncommitted files and move them to a new branch. Say you're working in the master branch and want to move those changes...

Apr 28, 2021 · 1 min read · blog.ajbothe.com  
Read the article

-   [#git](https://hashnode.com/tag/git)

## Written by

[AJ](https://hashnode.com/@ajbot)

@ajbot · Cincinnati, USA

  
[View profile](https://hashnode.com/@ajbot)

New findings daily...

I'm a technical advocate who it looking for new challenges. I will use this blog to post new challenges, find solutions and stay technically active.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
