]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-status.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-status.txt
CommitLineData
215a7ad1
JH
1git-status(1)
2=============
3f971fc4
JH
3
4NAME
5----
c3f0baac 6git-status - Show the working tree status
3f971fc4
JH
7
8
9SYNOPSIS
10--------
b1889c36 11'git status' <options>...
3f971fc4
JH
12
13DESCRIPTION
14-----------
2099bca9
JK
15Displays paths that have differences between the index file and the
16current HEAD commit, paths that have differences between the working
17tree and the index file, and paths in the working tree that are not
5162e697 18tracked by git (and are not ignored by linkgit:gitignore[5]). The first
2099bca9 19are what you _would_ commit by running `git commit`; the second and
b1889c36 20third are what you _could_ commit by running `git-add` before running
2099bca9 21`git commit`.
3f971fc4 22
fb6ff943
JH
23The command takes the same set of options as `git-commit`; it
24shows what would be committed if the same options are given to
25`git-commit`.
26
2099bca9
JK
27If there is no path that is different between the index file and
28the current HEAD commit (i.e., there is nothing to commit by running
b1889c36 29`git commit`), the command exits with non-zero status.
2099bca9 30
3f971fc4
JH
31
32OUTPUT
33------
34The output from this command is designed to be used as a commit
2099bca9 35template comment, and all the output lines are prefixed with '#'.
3f971fc4 36
c7860507 37The paths mentioned in the output, unlike many other git commands, are
2099bca9 38made relative to the current directory if you are working in a
46f721c8
JK
39subdirectory (this is on purpose, to help cutting and pasting). See
40the status.relativePaths config option below.
c7860507 41
3f971fc4 42
31fcd63c
JH
43CONFIGURATION
44-------------
45
46The command honors `color.status` (or `status.color` -- they
47mean the same thing and the latter is kept for backward
48compatibility) and `color.status.<slot>` configuration variables
49to colorize its output.
50
46f721c8
JK
51If the config variable `status.relativePaths` is set to false, then all
52paths shown are relative to the repository root, not to the current
53directory.
54
ac8d5afc
PY
55If `status.submodulesummary` is set to a non zero number or true (identical
56to -1 or an unlimited number), the submodule summary will be enabled and a
57summary of commits for modified submodules will be shown (see --summary-limit
58option of linkgit:git-submodule[1]).
59
56ae8df5 60SEE ALSO
cedb8d5d 61--------
5162e697 62linkgit:gitignore[5]
31fcd63c 63
3f971fc4
JH
64Author
65------
66Written by Linus Torvalds <torvalds@osdl.org> and
67Junio C Hamano <junkio@cox.net>.
68
69Documentation
70--------------
71Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
72
73GIT
74---
9e1f0a85 75Part of the linkgit:git[1] suite