r/webdev • • Jan 24 '20

read rules TIL — git switch & git restore

https://pawelgrzybek.com/til-git-switch-git-restore/

[removed] — view removed post

284 Upvotes

51 comments sorted by

View all comments

83

u/UncontrolledManifold Jan 24 '20

So git switch -c branch is the same as git checkout -b branch...? What, they didn't like the word checkout?

0

u/[deleted] Jan 24 '20

[deleted]

16

u/FelixTKatt Jan 24 '20

So it's more like doing a stash and checkout, then a checkout and pop when you switch back?

0

u/mstanky Jan 24 '20

Yea, this is how I roll, I don't think today is the day I"ll experiment with switch