Git
  • About
    • Trademark
  • Learn
    • Book
    • Cheat Sheet
    • Videos
    • External Links
  • Tools
    • Command Line
    • GUIs
    • Hosting
  • Reference
  • Install
  • Community
  • Table of Contents
    • NAME
    • SYNOPSIS
    • DESCRIPTION
    • OPTIONS
    • Raw output format
    • diff format for merges
    • Generating patches with -p
    • combined diff format
    • other diff formats
    • EXAMPLES
    • SEE ALSO
    • GIT
English ▾
Localized versions of git-diff manual
  1. English
  2. Deutsch
  3. Español
  4. Français
  5. Português (Brasil)
  6. Русский
  7. українська мова
  8. 简体中文
Want to read in your language or fix typos?
You can help translate this page.
Topics ▾

Setup and Config

  • git
  • config
  • help
  • bugreport
  • Credential helpers

Getting and Creating Projects

  • init
  • clone

Basic Snapshotting

  • add
  • status
  • diff
  • commit
  • notes
  • restore
  • reset
  • rm
  • mv

Branching and Merging

  • branch
  • checkout
  • switch
  • merge
  • mergetool
  • log
  • stash
  • tag
  • worktree

Sharing and Updating Projects

  • fetch
  • pull
  • push
  • remote
  • submodule

Inspection and Comparison

  • show
  • log
  • diff
  • difftool
  • range-diff
  • shortlog
  • describe

Patching

  • apply
  • cherry-pick
  • diff
  • rebase
  • revert

Debugging

  • bisect
  • blame
  • grep

Email

  • am
  • apply
  • imap-send
  • format-patch
  • send-email
  • request-pull

External Systems

  • svn
  • fast-import

Server Admin

  • daemon
  • update-server-info

Guides

  • gitattributes
  • Command-line interface conventions
  • Everyday Git
  • Frequently Asked Questions (FAQ)
  • Glossary
  • Hooks
  • gitignore
  • gitmodules
  • Revisions
  • Submodules
  • Tutorial
  • Workflows
  • All guides...

Administration

  • clean
  • gc
  • fsck
  • reflog
  • filter-branch
  • instaweb
  • archive
  • bundle

Plumbing Commands

  • cat-file
  • check-ignore
  • checkout-index
  • commit-tree
  • count-objects
  • diff-index
  • for-each-ref
  • hash-object
  • ls-files
  • ls-tree
  • merge-base
  • read-tree
  • rev-list
  • rev-parse
  • show-ref
  • symbolic-ref
  • update-index
  • update-ref
  • verify-pack
  • write-tree
Version 2.22.0 ▾ git-diff last updated in 2.52.0
Changes in the git-diff manual
  1. 2.52.0