DEV Community

Discussion on: 51 git commands that you'll ever need to get started with Git 🔥

Collapse
 
kdemetter profile image
De Metter Kenny • Edited

One I recently discovered and really like is git switch.
git switch
and in particular
git switch -c

It allows you to move all the uncommited changes you've done so far to a new branch.
This is really useful when you are working on something and then realize you really should have created a seperate branch for your changes