CheatSnip

Related

Commit Changes

git

Create a commit to permanently record staged changes in the repository history with a descriptive message

Show Commit Details

git

Show various types of objects

Rewrite History

git

Rewrite branches to filter out some files or modify commits

git/log

View Commit History

Show commit logs

git
log
history

Command

git log

Explanation

git log is used to show commit logs. It shows the commit logs.

Examples

Compact one-line format

git log --oneline

Visual graph of all branches

git log --graph --all

Show patch/diff for each commit

git log -p

More

Revert Commit

git

Create new commit that undoes changes

Binary Search for Bugs

git

Use binary search to find the specific commit that introduced a bug or regression

Reference Log

git

Record when the tips of branches were updated

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers