1GIT-STATUS(1) Git Manual GIT-STATUS(1)
2
3
4
6 git-status - Show the working tree status
7
9 git-status <options>...
10
12 Examines paths in the working tree that has changes unrecorded to the
13 index file, and changes between the index file and the current HEAD
14 commit. The former paths are what you could commit by running git add
15 before running git commit, and the latter paths are what you would
16 commit by running git commit.
17
18 If there is no path that is different between the index file and the
19 current HEAD commit, the command exits with non-zero status.
20
21 The command takes the same set of options as git-commit; it shows what
22 would be committed if the same options are given to git-commit.
23
24 If any paths have been touched in the working tree (that is, their
25 modification times have changed) but their contents and permissions are
26 identical to those in the index file, the command updates the index
27 file. Running git-status can thus speed up subsequent operations such
28 as git-diff if the working tree contains many paths that have been
29 touched but not modified.
30
32 The output from this command is designed to be used as a commit
33 template comments, and all the output lines are prefixed with #.
34
36 The command honors color.status (or status.color — they mean the same
37 thing and the latter is kept for backward compatibility) and
38 color.status.<slot> configuration variables to colorize its output.
39
41 gitignore(5)
42
44 Written by Linus Torvalds <torvalds@osdl.org> and Junio C Hamano
45 <junkio@cox.net>.
46
48 Documentation by David Greaves, Junio C Hamano and the git-list
49 <git@vger.kernel.org>.
50
52 Part of the git(7) suite
53
54
55
56
57Git 1.5.3.3 10/09/2007 GIT-STATUS(1)