4 ms·
>git checkout does so many different things. Git check file, git checkout branch, git checkout commit all do different stuff, and don't get me started on the op
by vikiomega9 10y ago
>git checkout does so many different things. Git check file, git checkout branch, git checkout commit all do different stuff, and don't get me started on the option flags.
I'm curious, how would you redesign git checkout to handle each of those different types of inputs? For me, while it appears cumbersome, understanding that a file is different from a branch and commit head seems to alleviate this problem.