Hacker News new | ask | show | jobs
by parenthephobia 3588 days ago
`git reset` doesn't simply remove commits. Depending upon what you reset to it could result in `git log` showing additional commits, or an entirely different set of commits. Conversely, there's no invocation of `git rm` which creates files. In this case, the commands look different because they do totally different things.

You'd have a better argument with `git rm`, `git branch -D` and `git remote remove`. :)

1 comments

Yeah, that was the first thing that popped into my head, but examples certainly abound.