GitCommand
Compact Commit History
Type this command
git log --onelineShows the history one line per commit.
The Git command to compact commit history is git log --oneline.
git log --onelinegit log --onelineShows the history one line per commit.
Run git log --oneline.
Run git log --oneline.
Type it in the terminal or command-line interface used by Git.
Yes. The command text is the same on both platforms when the tool is installed.