4 ms·
This is because git is a tool to interact with the git tree, not the mental models you've built on top of it or imported from other tools. Git checkout coverin
by Lhiw 5y ago
This is because git is a tool to interact with the git tree, not the mental models you've built on top of it or imported from other tools.
Git checkout covering multiple usecases makes sense to me, I've never thought, hey this is used for all these different things they should be separate. I think, hey, this tool is always checking out a hash and a path.
The fact that can be a branch or a commit is entirely inconsequential. If it irks you it's because you think there is a difference between a branch and a commit then you're likely lacking some fundamental understanding about git.
- Riverheart 5y agoGit is a tool to get work done and is used by people besides programmers (sysadmins, data analysts). If people don't understand everything is a hashed commit its Git's fault for introducing distinctions without making the cli reflect those distinctions, not because those people didn't take a data structures course on Git.