Optional
--abbrevShows the shortest prefix that is at least
Optional
--abbrev-Shows a prefix that names the object uniquely. See also --no-abbrev-commit.
Optional
--allIncludes all the refs in refs/, along with HEAD.
Optional
--all-Limits the commits those matching all specified --grep expressions.
Optional
--alternate-Includes all the objects mentioned as ref tips of alternate repositories.
Optional
--ancestry-Displays commits that are both descendants of commit1, and ancestors of commit2 when given a range of commits.
Optional
--anchoredGenerates a diff using the "anchored diff" algorithm.
Optional
--authorLimits the commits those with author header lines matching the specified regular expression.
Optional
--author-Shows no parents before all of its children are shown, but otherwise shows commits in the author timestamp order.
Optional
--basic-Considers limiting patterns to be basic regular expressions; this is the default.
Optional
--binaryOutputs a binary diff.
Optional
--bisectPretends as if the bad bisection ref refs/bisect/bad was listed and as if it was followed by --not and the good bisection refs refs/bisect/good-* on the command line.
Optional
--boundaryOutputs excluded boundary commits.
Optional
--branchesIncludes all the refs in refs/heads.
Optional
--break-Breaks complete rewrite changes into pairs of delete and create.
Optional
--checkWarns if changes introduce conflict markers or whitespace errors.
Optional
--cherryA synonym for --right-only --cherry-mark --no-merges
.
Optional
--cherry-Like --cherry-pick but marks equivalent commits with =
rather than omitting them, and inequivalent ones with +
.
Optional
--cherry-Omits any commit that introduces the same change as another commit on the “other side” when the set of commits are limited with symmetric difference.
Optional
--childrenPrints the children of the commit.
Optional
--combined-Lists the file name from all parents.
Optional
--committerLimits the commits to those with committer header lines matching the specified regular expression.
Optional
--compact-Outputs a condensed summary of extended header information.
Optional
--cumulativeSynonym for --dirstat=cumulative.
Optional
--dateSpecifies the date format for output.
Optional
--date-Shows no parents before all of its children are shown, but otherwise shows commits in the commit timestamp order.
Optional
--decoratePrints the ref names of any commits. See also --no-decorate.
Optional
--decorate-Overrides a match in log.excludeDecoration. See also --decorate-refs-exclude.
Optional
--decorate-Specifies the refs to exclude. See also --decorate-refs.
Optional
--denseShows only the selected commits, plus some to have a meaningful history.
Optional
--diff-Selects a diff algorithm.
Optional
--diff-Selects files by status.
Optional
--diff-Specifies the diff format for merge commits.
Optional
--dirstatGenerates a diffstat.
Optional
--dirstat-Generates a diffstat.
Optional
--dst-Shows the given destination prefix instead of "a/".
Optional
--encodingRe-codes the commit log message in the specified encoding.
Optional
--excludeExcludes all the refs matching the specified pattern.
Optional
--exclude-Follows only the first parent commit upon seeing a merge commit.
Optional
--expand-Performs tab expansion. See also --no-expand-tabs.
Optional
--ext-Allows an external diff helper to be executed.
Optional
--extended-Considers limiting patterns to be extended regular expressions.
Optional
--find-Detects and reports renames for each commit.
Optional
--find-Inspects unmodified files as candidates for the source of copy.
Optional
--find-Looks for differences that change the number of occurrences of the specified object.
Optional
--find-Detects and reports renames for each commit.
Optional
--first-Follows only the first parent commit upon seeing a merge commit.
Optional
--fixed-Considers limiting patterns to be fized strings, not reguar expresions.
Optional
--followLists the history of a file beyond renames.
Optional
--formatPrints the commit logs using the supplied format string.
Optional
--full-Shows the full diff for commits that touch the specified paths.
Optional
--full-Does not prune history.
Optional
--full-Shows the full pre- and post-image blob object names on the "index" line.
Optional
--function-Shows whole function as context lines for each change.
Optional
--globIncludes all the refs matching the specified pattern.
Optional
--graphDraws a text-based graphical representation of the commit history on the left side of the output.
Optional
--grepLimits the commits those with log messages matching the specified regular expression.
Optional
--grep-Limits the commits those with reflog matching the specified regular expression.
Optional
--histogramGenerates a diff using the "histogram diff" algorithm.
Optional
--ignore-Ignores whitespace when comparing lines.
Optional
--ignore-Ignores changes whose lines are all blank.
Optional
--ignore-Ignores carriage-return at the end of line.
Optional
--ignore-Ignores changes whose all lines match regex.
Optional
--ignore-Ignores invalid object names.
Optional
--ignore-Ignores whitespace at the end of line.
Optional
--ignore-Ignores changes in the amount of whitespace.
Optional
--ignore-Ignores changes to submodules in the diff generation.
Optional
--indent-Enables the heuristic that shifts diff hunk boundaries to make patches easier to read.
Optional
--inter-Shows the context between diff hunks, up to the specified number of lines.
Optional
--invert-Limits the commits those not matching --grep expressions.
Optional
--irreversible-Omits the preimage for deletes.
Optional
--left-Lists only commits on the left side of a symmetric difference. See also --right-only.
Optional
--left-Marks which side of a symmetric difference a commit is reachable from.
Optional
--line-Prepends an additional prefix to every line of output.
Optional
--log-Includes a line “log size
Optional
--mailmapUses the mailmap file to map author and committer names and email addresses to canonical real names and email addresses. See also --no-mailmap.
Optional
--max-Limits the number of commits to the specified number.
Optional
--max-Limits the number of commits to those with at most the specified number of parents. See also --no-max-parents.
Optional
--mergeAfter a failed merge, show refs that touch files having a conflict and don’t exist on all heads to merge.
Optional
--mergesPrints only merge commits. See also --no-merges.
Optional
--min-Limits the number of commits to those with at least the specified number of parents.
Optional
--minimalSpends extra time to make sure the smallest possible diff is produced.
Optional
--name-Shows only the names of changed files.
Optional
--name-Shows only the names and status of changed files.
Optional
--no-Shows the full object name. See also --no-abbrev-commit.
Optional
--no-The complement of --decorate.
Optional
--no-Disable output of diffs for merge commits.
Optional
--no-The complement of --expand-tabs.
Optional
--no-Disallows external diff drivers.
Optional
--no-Disables the heuristic that shifts diff hunk boundaries to make patches easier to read.
Optional
--no-The complement of --no-mailmap.
Optional
--no-The complement of --max-parents.
Optional
--no-Does not print merge commits. See also --merges.
Optional
--no-The complement of --min-parents.
Optional
--no-The complement of --notes.
Optional
--no-Suppresses diff output.
Optional
--no-Does not show any source or destination prefix.
Optional
--no-Countermands diff.relative.
Optional
--no-Does not use empty blobs as rename source.
Optional
--no-Disables rename detection.
Optional
--no-Disallows external text conversion filters to be run when comparing binary files.
Optional
--no-Shows the given commits, but does not traverse their ancestors.
Optional
--notesShows notes with an optional ref value to filter notes. See also --no-notes.
Optional
--numstatSimilar to --stat, but shows number of added and deleted lines in decimal notation and pathname without abbreviation, to make it more machine friendly.
Optional
--onelineShorthand for --pretty=oneline --abbrev-commit
.
Optional
--outputOutputs to a specific file instead of stdout.
Optional
--output-Specifies the character used to indicate context lines in the generated patch.
Optional
--output-Specifies the character used to indicate new lines in the generated patch.
Optional
--output-Specifies the character used to indicate old lines in the generated patch.
Optional
--parentsPrints the parents of the commit.
Optional
--patchGenerates a patch.
Optional
--patch-Synonym for --patch --raw.
Optional
--patch-Synonym for --patch --stat.
Optional
--patienceGenerates a diff using the "patience diff" algorithm.
Optional
--pickaxe-Shows all the changes in that changeset.
Optional
--pickaxe-Treats the string given to -S as an extended POSIX regular expression to match.
Optional
--rawGenerates the diff in raw format.
Optional
--reflogIncludes all the objects mentioned by reflogs.
Optional
--regexp-Matches regular expression limiting patterns without regard to case.
Optional
--relativeMakes the output relative.
Optional
--remotesIncludes all the refs in refs/remotes.
Optional
--remove-Stops when a given path disappears from the tree.
Optional
--rename-Uses empty blobs as rename source.
Optional
--reverseShows all commits in reverse order.
Optional
--right-Lists only commits on the right side of a symmetric difference. See also --left-only.
Optional
--shortstatOutputs only the last line of --stat.
Optional
--show-Puts a barrier in between two consecutive commits that do not belong to a linear branch.
Optional
--show-Includes any merge commits that are not TREESAME to the first parent but are TREESAME to a later parent.
Optional
--show-Validitates signed commits.
Optional
--simplify-Select commits referred by some branch or tag.
Optional
--simplify-Removes some needless merges from the resulting history.
Optional
--sinceShows commits after the specified timestamp.
Relative dates, such as yesterday
, may be used.
See also --until.
Optional
--single-Examines the current working tree only.
Optional
--skipSkips number commits before starting.
Optional
--sourcePrints ref name given on the command line by which each commit was reached.
Optional
--sparseShows all commits in the simplified history.
Optional
--src-Shows the given source prefix instead of "a/".
Optional
--statGenerates a diffstat.
Optional
--submoduleSpecifies how differences in submodules are shown.
Optional
--summaryOutputs a condensed summary of extended header information.
Optional
--tagsIncludes all the refs in refs/tags.
Optional
--textTreats all files as text.
Optional
--textconvAllows external text conversion filters to be run when comparing binary files.
Optional
--topo-Shows no parents before all of its children are shown, and avoids showing commits on multiple lines of history intermixed.
Optional
--unifiedGenerates diffs with the specified number of context lines.
Optional
--untilShows commits before the specified timestamp.
Relative dates, such as yesterday
, may be used.
See also --since.
Optional
--walk-Walks reflog entries from the most recent one to older ones.
Optional
--word-Shows a word diff.
Optional
--word-Specifies the regex to define a word.
Optional
-GLooks for differences whose patch text contains added/removed lines that match
Optional
-LTraces the evolution within the specified file.
Optional
-OControls the order in which files appear in the output.
Optional
-RSwaps two inputs.
Optional
-SLooks for differences that change the number of occurrences of the specified string.
Optional
-lPrevents the exhaustive portion of rename/copy detection from running if the number of source/destination files involved exceeds the specified number.
Optional
-zDoes not munge pathnames and uses NULs as output field terminators.
LogOptions defines the supported options for the Git log command.