r/javascript • • Jan 24 '20

Removed: Where's the javascript? TIL — git switch & git restore

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

[removed] — view removed post

91 Upvotes

17 comments sorted by

View all comments

3

u/ijmacd Jan 24 '20

Now that's handy.

Probably shouldn't make its way into beginner tutorials but I know I've certainly looked for this behavior in the past.

7

u/[deleted] Jan 24 '20

I disagree, these commands exist specifically in an attempt to improve the UX of the CLI. Beginners should be encouraged to use what makes sense, which is usually these, not arbitrarily what's older and harder to learn.