Engineer | Lover of dogs, books, and learning | Dos XX can be most interesting man in the world, I'm happy being the luckiest. | I write about what I learn @ code-comments.com
Technically speaking, it is part of branch management: you are checking out = resetting a file (or files, as you can use * wildcards) to the original branch state.
Engineer | Lover of dogs, books, and learning | Dos XX can be most interesting man in the world, I'm happy being the luckiest. | I write about what I learn @ code-comments.com
Yup! That would work too.
I think the reason I avoided
git checkout
is that I think of it as branch management, not files.I concede that it's a totally valid way of doing this -- though, the flag of
--
is rather ambiguous to me. :)Technically speaking, it is part of branch management: you are checking out = resetting a file (or files, as you can use * wildcards) to the original branch state.
Got it. That makes a lot of sense. I'll update
cpkg
togit checkout -- package*.json
.Sometimes you just need to put things out there to have people show you a better way! Appreciate it!