blob: 8fd0fc62368611bee25b4bbc3becef853937ff2c [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-status(1)
2=============
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-status - Show the working tree status
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano8fd52302006-08-10 00:18:0811'git-status' <options>...
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15Examines paths in the working tree that has changes unrecorded
16to the index file, and changes between the index file and the
17current HEAD commit. The former paths are what you _could_
Junio C Hamano89d4e0f2007-02-18 00:34:5918commit by running 'git add' before running 'git
Junio C Hamano1a4e8412005-12-27 08:17:2319commit', and the latter paths are what you _would_ commit by
20running 'git commit'.
21
22If there is no path that is different between the index file and
23the current HEAD commit, the command exits with non-zero
24status.
25
Junio C Hamano8fd52302006-08-10 00:18:0826The command takes the same set of options as `git-commit`; it
27shows what would be committed if the same options are given to
28`git-commit`.
29
Junio C Hamanob515b6a2007-08-08 09:21:1630If any paths have been touched in the working tree (that is,
31their modification times have changed) but their contents and
32permissions are identical to those in the index file, the command
33updates the index file. Running `git-status` can thus speed up
34subsequent operations such as `git-diff` if the working tree
35contains many paths that have been touched but not modified.
36
Junio C Hamano1a4e8412005-12-27 08:17:2337
38OUTPUT
39------
40The output from this command is designed to be used as a commit
41template comments, and all the output lines are prefixed with '#'.
42
43
Junio C Hamanof9771f62007-01-17 17:42:3044CONFIGURATION
45-------------
46
47The command honors `color.status` (or `status.color` -- they
48mean the same thing and the latter is kept for backward
49compatibility) and `color.status.<slot>` configuration variables
50to colorize its output.
51
Junio C Hamano679d22d2007-06-02 21:13:4452See Also
53--------
54gitlink:gitignore[5]
Junio C Hamanof9771f62007-01-17 17:42:3055
Junio C Hamano1a4e8412005-12-27 08:17:2356Author
57------
58Written by Linus Torvalds <torvalds@osdl.org> and
59Junio C Hamano <junkio@cox.net>.
60
61Documentation
62--------------
63Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
64
65GIT
66---
67Part of the gitlink:git[7] suite