4 ms·
Git's CLI is just awful in a bunch of ways. There's a bunch of commands that do two or more different things depending on how you use them, and whole piles of c
by zyxley 11y ago
Git's CLI is just awful in a bunch of ways. There's a bunch of commands that do two or more different things depending on how you use them, and whole piles of cryptic and incomprehensible error messages.
Heck, the just the contrast between `git add <file>` and `git reset HEAD <file>` is terrible.
- mnarayan01 11y agoI wouldn't describe the CLI as "awful", though I hear your complaint. Not sure where you're going with `add` versus `reset` though. `git rm --cached ${file}` would presumably do what you want with parallel syntax.
- zyxley 11y agoThe sane way to do it would be to have something like `git stage` and `git unstage`, as distinct single-purpose commands.
- mnarayan01 11y agoThe first example at https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases is literally exactly what you want.
- zyxley 11y ago"It's easy to make the CLI less bad, but the developers have never bothered to do so themselves" is reinforcement of my complaint, not dismissal of it.
- mnarayan01 11y agoNot trying to dismiss, just assist ;)