People type this expecting log. Here's why, and what to actually use.
This is not a real Git command. People type it expecting git log. We're including a module precisely so you understand the misconception and learn the right tool.
Git's history is the commit DAG. To traverse it on the command line, the verb is log (and its powerful flags --graph, --oneline, -p, -S). For a graphical view, gitk ships with Git. There is no git history subcommand.
$ git history
git: 'history' is not a git command. See 'git --help'.| Flag | What it does |
|---|---|
(none) | There's nothing to flag — the command doesn't exist. |
$ git log --oneline --graph --decorate --all$ gitk --all$ git log --follow -- src/main.cgit history='git log --oneline --graph --decorate --all' if the muscle memory is too strong to fix.log module — it's the actual command.git history colloquially. They mean git log.Hit each option, then Check answers. Score is recorded; Next is always open.