Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Git & Version Control
  4. Git History and Diffs

Git & Version Control · Cheatsheet

Git History and Diffs Cheatsheet

Inspect Git history, compare revisions, follow file changes, and read reflogs. Check the difference between log ranges and snapshot comparisons.

38 commands 7 sections

On this sheet

Read this first 4 Inspect local changes 6 Read commit history 6 Compare revisions 6 Follow one file 6 Inspect saved references 4 Sources and related references 6

No entry matches that filter.

Read this first

  • <commit>, <branch>, <file> Replace each placeholder with a real revision, branch, or path
  • Read-only reference These inspection commands do not change tracked files or commits
  • A..B versus A...B Log ranges select commits; diff ranges compare file snapshots
  • Saved commits only History cannot recover edits that Git never recorded

Inspect local changes

  • git status --short --branch Show file state and branch tracking
  • git diff -- <file> Compare an unstaged file with the index
  • git diff --cached -- <file> Compare staged content with HEAD
  • git diff HEAD -- <file> Compare the working file with the last commit
  • git diff --stat Summarize unstaged changes by file
  • git diff --check Check unstaged changes for whitespace errors

Read commit history

  • git log -10 --oneline List the ten most recent commits
  • git log --all --graph --decorate --oneline Show reachable branch history as a graph
  • git log --first-parent --oneline Follow the first parent through merge commits
  • git log --since="2 weeks ago" --oneline Filter history by a relative date
  • git log --author="Alex" --oneline Match the author with a regular expression
  • git log --grep="timeout" --oneline Find commit messages that match the pattern

Compare revisions

  • git diff main feature -- Compare the two branch tips
  • git diff main...feature -- Compare the merge base with the feature tip
  • git log main..feature --oneline List feature commits absent from main
  • git log --left-right main...feature --oneline Show commits unique to either branch
  • git diff --name-status HEAD~1 HEAD -- List changed paths and status in the last commit
  • git show --stat <commit> Show a commit summary and file statistics

Follow one file

  • git log --follow --oneline -- <file> Follow one file across detected renames
  • git log -p -- <file> Show patches from the file history
  • git log -S"timeout" -- <file> Find commits that change the count of this exact text
  • git log -G"timeout.*=" -- <file> Find added or removed lines that match the regex
  • git blame -L 10,20 -- <file> Show the last recorded change for lines 10 through 20
  • git show HEAD:<file> Read a repository-relative path from the last commit

Inspect saved references

  • git reflog show --date=iso HEAD List local HEAD movements while their reflog entries remain
  • git show --format=fuller --no-patch <commit> Show author and committer metadata
  • git branch --contains <commit> List local branches that contain the commit
  • git tag --contains <commit> List tags whose history contains the commit

Sources and related references

  • https://git-scm.com/docs/git-log Check revision filters and history ranges
  • https://git-scm.com/docs/git-diff Check snapshot comparison and merge-base behavior
  • https://git-scm.com/docs/git-blame Check line attribution and rename handling
  • https://git-scm.com/docs/git-reflog Check local reflog scope and expiry
  • /cheatsheets/git-branches-remotes/ Continue with branches and remote tracking
  • /cheatsheets/gitignore-patterns/ Check ignored-file rules

Related cheatsheets

  • Git Branches and Remotes39 commands
  • Gitignore Patterns40 commands
  • Git Commands55 commands

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor