DEV Community

Discussion on: Git switch command

Collapse
 
jessekphillips profile image
Jesse Phillips

Sad, hard to beat

git checkout -b <branch> <commit>

Thread Thread
 
m0rozov profile image
Andrey

U can use

git switch -c <branch> <commit>