file is automatically created for branch heads.
This information can be used to determine what commit
- was the tip of a branch "2 days ago". This value is
- false by default (no automated creation of log files).
+ was the tip of a branch "2 days ago".
+
+ This value is true by default in a repository that has
+ a working directory associated with it, and false by
+ default in a bare repository.
core.repositoryFormatVersion::
Internal variable identifying the repository format and layout
color.status.<slot>::
Use customized color for status colorization. `<slot>` is
one of `header` (the header text of the status message),
- `updated` (files which are updated but not committed),
- `changed` (files which are changed but not updated in the index),
+ `added` or `updated` (files which are added but not committed),
+ `changed` (files which are changed but not added in the index),
or `untracked` (files which are not tracked by git). The values of
these variables may be specified as in color.diff.<slot>.
<p>to which git will reply</p>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt>defaulting to local storage area</tt></pre>\r
+<pre><tt>Initialized empty Git repository in .git/</tt></pre>\r
</div></div>\r
<p>which is just git's way of saying that you haven't been doing anything\r
strange, and that it will have created a local <tt>.git</tt> directory setup for\r
$ commit=$(echo 'Initial commit' | git-commit-tree $tree)\r
$ git-update-ref HEAD $commit</tt></pre>\r
</div></div>\r
-<p>which will say:</p>\r
-<div class="listingblock">\r
-<div class="content">\r
-<pre><tt>Committing initial tree 8988da15d077d4829fc51d8544c097def6644dbb</tt></pre>\r
-</div></div>\r
-<p>just to warn you about the fact that it created a totally new commit\r
-that is not related to anything else. Normally you do this only <strong>once</strong>\r
-for a project ever, and all later commits will be parented on top of an\r
-earlier commit, and you'll never see this "Committing initial tree"\r
-message ever again.</p>\r
+<p>In this case this creates a totally new commit that is not related to\r
+anything else. Normally you do this only <strong>once</strong> for a project ever, and\r
+all later commits will be parented on top of an earlier commit.</p>\r
<p>Again, normally you'd never actually do this by hand. There is a\r
helpful script called <tt>git commit</tt> that will do all of this for you. So\r
you could have just written <tt>git commit</tt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 03-Oct-2006 08:41:43 UTC\r
+Last updated 16-Dec-2006 07:43:55 UTC\r
</div>\r
</div>\r
</body>\r
to which git will reply
----------------
-defaulting to local storage area
+Initialized empty Git repository in .git/
----------------
which is just git's way of saying that you haven't been doing anything
$ git-update-ref HEAD $commit
------------------------------------------------
-which will say:
-
-----------------
-Committing initial tree 8988da15d077d4829fc51d8544c097def6644dbb
-----------------
-
-just to warn you about the fact that it created a totally new commit
-that is not related to anything else. Normally you do this only *once*
-for a project ever, and all later commits will be parented on top of an
-earlier commit, and you'll never see this "Committing initial tree"
-message ever again.
+In this case this creates a totally new commit that is not related to
+anything else. Normally you do this only *once* for a project ever, and
+all later commits will be parented on top of an earlier commit.
Again, normally you'd never actually do this by hand. There is a
helpful script called `git commit` that will do all of this for you. So
deleted lines in decimal notation and pathname without
abbreviation, to make it more machine friendly.
+--shortstat::
+ Output only the last line of the --stat format containing total
+ number of modified files, as well as number of added and deleted
+ lines.
+
--summary::
Output a condensed summary of extended header information
such as creations, renames and mode changes.
</p>\r
</dd>\r
<dt>\r
+-q|--quiet\r
+</dt>\r
+<dd>\r
+<p>\r
+ Supress commit summary message.\r
+</p>\r
+</dd>\r
+<dt>\r
--\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 13-Dec-2006 21:32:05 UTC\r
+Last updated 16-Dec-2006 07:43:46 UTC\r
</div>\r
</div>\r
</body>\r
as well. This is usually not what you want unless you
are concluding a conflicted merge.
+-q|--quiet::
+ Supress commit summary message.
+
\--::
Do not interpret any more arguments as options.
</p>\r
</dd>\r
<dt>\r
+--shortstat\r
+</dt>\r
+<dd>\r
+<p>\r
+ Output only the last line of the --stat format containing total\r
+ number of modified files, as well as number of added and deleted\r
+ lines.\r
+</p>\r
+</dd>\r
+<dt>\r
--summary\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 06-Dec-2006 08:58:57 UTC\r
+Last updated 16-Dec-2006 07:43:47 UTC\r
</div>\r
</div>\r
</body>\r
</p>\r
</dd>\r
<dt>\r
+--shortstat\r
+</dt>\r
+<dd>\r
+<p>\r
+ Output only the last line of the --stat format containing total\r
+ number of modified files, as well as number of added and deleted\r
+ lines.\r
+</p>\r
+</dd>\r
+<dt>\r
--summary\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 06-Dec-2006 08:58:58 UTC\r
+Last updated 16-Dec-2006 07:43:48 UTC\r
</div>\r
</div>\r
</body>\r
</p>\r
</dd>\r
<dt>\r
+--shortstat\r
+</dt>\r
+<dd>\r
+<p>\r
+ Output only the last line of the --stat format containing total\r
+ number of modified files, as well as number of added and deleted\r
+ lines.\r
+</p>\r
+</dd>\r
+<dt>\r
--summary\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 06-Dec-2006 08:58:59 UTC\r
+Last updated 16-Dec-2006 07:43:49 UTC\r
</div>\r
</div>\r
</body>\r
</p>\r
</dd>\r
<dt>\r
+--shortstat\r
+</dt>\r
+<dd>\r
+<p>\r
+ Output only the last line of the --stat format containing total\r
+ number of modified files, as well as number of added and deleted\r
+ lines.\r
+</p>\r
+</dd>\r
+<dt>\r
--summary\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 06-Dec-2006 08:59:00 UTC\r
+Last updated 16-Dec-2006 07:43:50 UTC\r
</div>\r
</div>\r
</body>\r
</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-diff</em> [ --diff-options ] <tree-ish>{0,2} [<path>…]</p>\r
+<p><em>git-diff</em> [ --diff-options ] <tree-ish>{0,2} [--] [<path>…]</p>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
</p>\r
</dd>\r
<dt>\r
-<em>git-diff</em> [--options] <commit> — [<path>…]\r
+<em>git-diff</em> [--options] <commit> [--] [<path>…]\r
</dt>\r
<dd>\r
<p>\r
</p>\r
</dd>\r
<dt>\r
-<em>git-diff</em> [--options] <commit> <commit> — [<path>…]\r
+<em>git-diff</em> [--options] <commit> <commit> [--] [<path>…]\r
</dt>\r
<dd>\r
<p>\r
</p>\r
</dd>\r
<dt>\r
+--shortstat\r
+</dt>\r
+<dd>\r
+<p>\r
+ Output only the last line of the --stat format containing total\r
+ number of modified files, as well as number of added and deleted\r
+ lines.\r
+</p>\r
+</dd>\r
+<dt>\r
--summary\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 14-Dec-2006 11:19:59 UTC\r
+Last updated 16-Dec-2006 07:43:51 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
-'git-diff' [ --diff-options ] <tree-ish>{0,2} [<path>...]
+'git-diff' [ --diff-options ] <tree-ish>{0,2} [--] [<path>...]
DESCRIPTION
-----------
would want comparison with the latest commit, so if you
do not give <commit>, it defaults to HEAD.
-'git-diff' [--options] <commit> -- [<path>...]::
+'git-diff' [--options] <commit> [--] [<path>...]::
This form is to view the changes you have in your
working tree relative to the named <commit>. You can
branch name to compare with the tip of a different
branch.
-'git-diff' [--options] <commit> <commit> -- [<path>...]::
+'git-diff' [--options] <commit> <commit> [--] [<path>...]::
This form is to view the changes between two <commit>,
for example, tips of two branches.
<div class="sectionbody">\r
<div class="verseblock">\r
<div class="content"><em>git-repo-config</em> [--global] [type] name [value [value_regex]]\r
+<em>git-repo-config</em> [--global] [type] --add name value\r
<em>git-repo-config</em> [--global] [type] --replace-all name [value [value_regex]]\r
<em>git-repo-config</em> [--global] [type] --get name [value_regex]\r
<em>git-repo-config</em> [--global] [type] --get-all name [value_regex]\r
<p>You can query/set/replace/unset options with this command. The name is\r
actually the section and the key separated by a dot, and the value will be\r
escaped.</p>\r
-<p>If you want to set/unset an option which can occur on multiple\r
+<p>Multiple lines can be added to an option by using the <em>--add</em> option.\r
+If you want to update or unset an option which can occur on multiple\r
lines, a POSIX regexp <tt>value_regex</tt> needs to be given. Only the\r
existing values that match the regexp are updated or unset. If\r
you want to handle the lines that do <strong>not</strong> match the regex, just\r
</p>\r
</dd>\r
<dt>\r
+--add\r
+</dt>\r
+<dd>\r
+<p>\r
+ Adds a new line to the option without altering any existing\r
+ values. This is the same as providing <em>^$</em> as the value_regex.\r
+</p>\r
+</dd>\r
+<dt>\r
--get\r
</dt>\r
<dd>\r
<div class="content">\r
<pre><tt>% git repo-config section.key value '[!]'</tt></pre>\r
</div></div>\r
+<p>To add a new proxy, without altering any of the existing ones, use</p>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>% git repo-config core.gitproxy '"proxy" for example.com'</tt></pre>\r
+</div></div>\r
</div>\r
<h2>CONFIGURATION FILE</h2>\r
<div class="sectionbody">\r
<div class="literalblock">\r
<div class="content">\r
<pre><tt>This information can be used to determine what commit\r
-was the tip of a branch "2 days ago". This value is\r
-false by default (no automated creation of log files).</tt></pre>\r
+was the tip of a branch "2 days ago".</tt></pre>\r
+</div></div>\r
+<div class="literalblock">\r
+<div class="content">\r
+<pre><tt>This value is true by default in a repository that has\r
+a working directory associated with it, and false by\r
+default in a bare repository.</tt></pre>\r
</div></div>\r
</dd>\r
<dt>\r
<p>\r
Use customized color for status colorization. <tt><slot></tt> is\r
one of <tt>header</tt> (the header text of the status message),\r
- <tt>updated</tt> (files which are updated but not committed),\r
- <tt>changed</tt> (files which are changed but not updated in the index),\r
+ <tt>added</tt> or <tt>updated</tt> (files which are added but not committed),\r
+ <tt>changed</tt> (files which are changed but not added in the index),\r
or <tt>untracked</tt> (files which are not tracked by git). The values of\r
these variables may be specified as in color.diff.<slot>.\r
</p>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 13-Dec-2006 21:32:06 UTC\r
+Last updated 16-Dec-2006 07:43:51 UTC\r
</div>\r
</div>\r
</body>\r
--------
[verse]
'git-repo-config' [--global] [type] name [value [value_regex]]
+'git-repo-config' [--global] [type] --add name value
'git-repo-config' [--global] [type] --replace-all name [value [value_regex]]
'git-repo-config' [--global] [type] --get name [value_regex]
'git-repo-config' [--global] [type] --get-all name [value_regex]
actually the section and the key separated by a dot, and the value will be
escaped.
-If you want to set/unset an option which can occur on multiple
+Multiple lines can be added to an option by using the '--add' option.
+If you want to update or unset an option which can occur on multiple
lines, a POSIX regexp `value_regex` needs to be given. Only the
existing values that match the regexp are updated or unset. If
you want to handle the lines that do *not* match the regex, just
Default behavior is to replace at most one line. This replaces
all lines matching the key (and optionally the value_regex).
+--add::
+ Adds a new line to the option without altering any existing
+ values. This is the same as providing '^$' as the value_regex.
+
--get::
Get the value for a given key (optionally filtered by a regex
matching the value). Returns error code 1 if the key was not
% git repo-config section.key value '[!]'
------------
+To add a new proxy, without altering any of the existing ones, use
+
+------------
+% git repo-config core.gitproxy '"proxy" for example.com'
+------------
+
include::config.txt[]
<p>\r
Does not touch the index file nor the working tree at all, but\r
requires them to be in a good order. This leaves all your changed\r
- files "Updated but not checked in", as <a href="git-status.html">git-status(1)</a> would\r
+ files "Added but not yet committed", as <a href="git-status.html">git-status(1)</a> would\r
put it.\r
</p>\r
</dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 03-Oct-2006 08:41:24 UTC\r
+Last updated 16-Dec-2006 07:43:52 UTC\r
</div>\r
</div>\r
</body>\r
--soft::
Does not touch the index file nor the working tree at all, but
requires them to be in a good order. This leaves all your changed
- files "Updated but not checked in", as gitlink:git-status[1] would
+ files "Added but not yet committed", as gitlink:git-status[1] would
put it.
--hard::
<h2>NAME</h2>\r
<div class="sectionbody">\r
<p>git-show -\r
- Show one commit with difference it introduces\r
+ Show various types of objects\r
</p>\r
</div>\r
</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-show</em> <option>…</p>\r
+<p><em>git-show</em> [options] <object>…</p>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
-<p>Shows commit log and textual diff for a single commit. The\r
-command internally invokes <em>git-rev-list</em> piped to\r
-<em>git-diff-tree</em>, and takes command line options for both of\r
-these commands. It also presents the merge commit in a special\r
-format as produced by <em>git-diff-tree --cc</em>.</p>\r
+<p>Shows one or more objects (blobs, trees, tags and commits).</p>\r
+<p>For commits it shows the log message and textual diff. It also\r
+presents the merge commit in a special format as produced by\r
+<em>git-diff-tree --cc</em>.</p>\r
+<p>For tags, it shows the tag message and the referenced objects.</p>\r
+<p>For trees, it shows the names (equivalent to <a href="git-ls-tree.html">git-ls-tree(1)</a>\r
+with --name-only).</p>\r
+<p>For plain blobs, it shows the plain contents.</p>\r
<p>This manual page describes only the most frequently used options.</p>\r
</div>\r
<h2>OPTIONS</h2>\r
</dd>\r
</dl>\r
</div>\r
+<h2>EXAMPLES</h2>\r
+<div class="sectionbody">\r
+<dl>\r
+<dt>\r
+git show v1.0.0\r
+</dt>\r
+<dd>\r
+<p>\r
+ Shows the tag <tt>v1.0.0</tt>.\r
+</p>\r
+</dd>\r
+<dt>\r
+\r
+</dt>\r
+<dd>\r
+<p>\r
+ Shows the tree pointed to by the tag <tt>v1.0.0</tt>.\r
+</p>\r
+</dd>\r
+</dl>\r
+<p>git show next~10:Documentation/README\r
+ Shows the contents of the file <tt>Documentation/README</tt> as\r
+ they were current in the 10th last commit of the branch\r
+ <tt>next</tt>.</p>\r
+<p>git show master:Makefile master:t/Makefile\r
+ Concatenates the contents of said Makefiles in the head\r
+ of the branch <tt>master</tt>.</p>\r
+</div>\r
<h2>Author</h2>\r
<div class="sectionbody">\r
<p>Written by Linus Torvalds <torvalds@osdl.org> and\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 23-Nov-2006 02:47:22 UTC\r
+Last updated 16-Dec-2006 07:43:53 UTC\r
</div>\r
</div>\r
</body>\r
NAME
----
-git-show - Show one commit with difference it introduces
+git-show - Show various types of objects
SYNOPSIS
--------
-'git-show' <option>...
+'git-show' [options] <object>...
DESCRIPTION
-----------
-Shows commit log and textual diff for a single commit. The
-command internally invokes 'git-rev-list' piped to
-'git-diff-tree', and takes command line options for both of
-these commands. It also presents the merge commit in a special
-format as produced by 'git-diff-tree --cc'.
+Shows one or more objects (blobs, trees, tags and commits).
+
+For commits it shows the log message and textual diff. It also
+presents the merge commit in a special format as produced by
+'git-diff-tree --cc'.
+
+For tags, it shows the tag message and the referenced objects.
+
+For trees, it shows the names (equivalent to gitlink:git-ls-tree[1]
+with \--name-only).
+
+For plain blobs, it shows the plain contents.
This manual page describes only the most frequently used options.
include::pretty-formats.txt[]
+
+EXAMPLES
+--------
+
+git show v1.0.0::
+ Shows the tag `v1.0.0`.
+
+git show v1.0.0^{tree}::
+ Shows the tree pointed to by the tag `v1.0.0`.
+
+git show next~10:Documentation/README
+ Shows the contents of the file `Documentation/README` as
+ they were current in the 10th last commit of the branch
+ `next`.
+
+git show master:Makefile master:t/Makefile
+ Concatenates the contents of said Makefiles in the head
+ of the branch `master`.
+
Author
------
Written by Linus Torvalds <torvalds@osdl.org> and
<pre><tt>$ mkdir test-project\r
$ cd test-project\r
$ git init-db\r
-defaulting to local storage area\r
+Initialized empty Git repository in .git/\r
$ echo 'hello world' > file.txt\r
$ git add .\r
$ git commit -a -m "initial commit"\r
-Committing initial tree 92b8b694ffb1675e5975148e1121810081dbdffe\r
+Created initial commit 54196cc2703dc165cbd373a65a4dcf22d50ae7f7\r
create mode 100644 file.txt\r
$ echo 'hello world!' >file.txt\r
-$ git commit -a -m "add emphasis"</tt></pre>\r
+$ git commit -a -m "add emphasis"\r
+Created commit c4d59f390b9cfd4318117afde11d601c1085f241</tt></pre>\r
</div></div>\r
-<p>What are the 40 digits of hex that git responded to the first commit\r
-with?</p>\r
+<p>What are the 40 digits of hex that git responded to the commit with?</p>\r
<p>We saw in part one of the tutorial that commits have names like this.\r
It turns out that every object in the git history is stored under\r
such a 40-digit hex name. That name is the SHA1 hash of the object's\r
the same data twice (since identical data is given an identical SHA1\r
name), and that the contents of a git object will never change (since\r
that would change the object's name as well).</p>\r
+<p>It is expected that the content of the commit object you created while\r
+following the example above generates a different SHA1 hash than\r
+the one shown above because the commit object records the time when\r
+it was created and the name of the person performing the commit.</p>\r
<p>We can ask git about this particular object with the cat-file\r
-command—just cut-and-paste from the reply to the initial commit, to\r
-save yourself typing all 40 hex digits:</p>\r
+command. Don't copy the 40 hex digits from this example but use those\r
+from your own version. Note that you can shorten it to only a few\r
+characters to save yourself typing all 40 hex digits:</p>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt>$ git cat-file -t 92b8b694ffb1675e5975148e1121810081dbdffe\r
-tree</tt></pre>\r
+<pre><tt>$ git-cat-file -t 54196cc2\r
+commit\r
+$ git-cat-file commit 54196cc2\r
+tree 92b8b694ffb1675e5975148e1121810081dbdffe\r
+author J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500\r
+committer J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500\r
+\r
+initial commit</tt></pre>\r
</div></div>\r
<p>A tree can refer to one or more "blob" objects, each corresponding to\r
a file. In addition, a tree can also refer to other tree objects,\r
</div></div>\r
<p>and the contents of these files is just the compressed data plus a\r
header identifying their length and their type. The type is either a\r
-blob, a tree, a commit, or a tag. We've seen a blob and a tree now,\r
-so next we should look at a commit.</p>\r
+blob, a tree, a commit, or a tag.</p>\r
<p>The simplest commit to find is the HEAD commit, which we can find\r
from .git/HEAD:</p>\r
<div class="listingblock">\r
<div class="content">\r
<pre><tt>$ git status\r
#\r
-# Updated but not checked in:\r
+# Added but not yet committed:\r
# (will commit)\r
#\r
# new file: closing.txt\r
#\r
#\r
-# Changed but not updated:\r
-# (use git-update-index to mark for commit)\r
+# Changed but not added:\r
+# (use "git add file1 file2" to include for commit)\r
#\r
# modified: file.txt\r
#</tt></pre>\r
</div></div>\r
<p>Since the current state of closing.txt is cached in the index file,\r
-it is listed as "updated but not checked in". Since file.txt has\r
+it is listed as "added but not yet committed". Since file.txt has\r
changes in the working directory that aren't reflected in the index,\r
-it is marked "changed but not updated". At this point, running "git\r
+it is marked "changed but not added". At this point, running "git\r
commit" would create a commit that added closing.txt (with its new\r
contents), but that didn't modify file.txt.</p>\r
<p>Also, note that a bare "git diff" shows the changes to file.txt, but\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 13-Dec-2006 21:32:09 UTC\r
+Last updated 16-Dec-2006 07:43:54 UTC\r
</div>\r
</div>\r
</body>\r
$ mkdir test-project
$ cd test-project
$ git init-db
-defaulting to local storage area
+Initialized empty Git repository in .git/
$ echo 'hello world' > file.txt
$ git add .
$ git commit -a -m "initial commit"
-Committing initial tree 92b8b694ffb1675e5975148e1121810081dbdffe
+Created initial commit 54196cc2703dc165cbd373a65a4dcf22d50ae7f7
create mode 100644 file.txt
$ echo 'hello world!' >file.txt
$ git commit -a -m "add emphasis"
+Created commit c4d59f390b9cfd4318117afde11d601c1085f241
------------------------------------------------
-What are the 40 digits of hex that git responded to the first commit
-with?
+What are the 40 digits of hex that git responded to the commit with?
We saw in part one of the tutorial that commits have names like this.
It turns out that every object in the git history is stored under
name), and that the contents of a git object will never change (since
that would change the object's name as well).
+It is expected that the content of the commit object you created while
+following the example above generates a different SHA1 hash than
+the one shown above because the commit object records the time when
+it was created and the name of the person performing the commit.
+
We can ask git about this particular object with the cat-file
-command--just cut-and-paste from the reply to the initial commit, to
-save yourself typing all 40 hex digits:
+command. Don't copy the 40 hex digits from this example but use those
+from your own version. Note that you can shorten it to only a few
+characters to save yourself typing all 40 hex digits:
------------------------------------------------
-$ git cat-file -t 92b8b694ffb1675e5975148e1121810081dbdffe
-tree
+$ git-cat-file -t 54196cc2
+commit
+$ git-cat-file commit 54196cc2
+tree 92b8b694ffb1675e5975148e1121810081dbdffe
+author J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500
+committer J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500
+
+initial commit
------------------------------------------------
A tree can refer to one or more "blob" objects, each corresponding to
and the contents of these files is just the compressed data plus a
header identifying their length and their type. The type is either a
-blob, a tree, a commit, or a tag. We've seen a blob and a tree now,
-so next we should look at a commit.
+blob, a tree, a commit, or a tag.
The simplest commit to find is the HEAD commit, which we can find
from .git/HEAD:
------------------------------------------------
$ git status
#
-# Updated but not checked in:
+# Added but not yet committed:
# (will commit)
#
# new file: closing.txt
#
#
-# Changed but not updated:
-# (use git-update-index to mark for commit)
+# Changed but not added:
+# (use "git add file1 file2" to include for commit)
#
# modified: file.txt
#
------------------------------------------------
Since the current state of closing.txt is cached in the index file,
-it is listed as "updated but not checked in". Since file.txt has
+it is listed as "added but not yet committed". Since file.txt has
changes in the working directory that aren't reflected in the index,
-it is marked "changed but not updated". At this point, running "git
+it is marked "changed but not added". At this point, running "git
commit" would create a commit that added closing.txt (with its new
contents), but that didn't modify file.txt.
<p>Git will reply</p>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt>defaulting to local storage area</tt></pre>\r
+<pre><tt>Initialized empty Git repository in .git/</tt></pre>\r
</div></div>\r
<p>You've now initialized the working directory—you may notice a new\r
directory created, named ".git". Tell git that you want it to track\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 13-Dec-2006 21:32:08 UTC\r
+Last updated 16-Dec-2006 07:43:53 UTC\r
</div>\r
</div>\r
</body>\r
Git will reply
------------------------------------------------
-defaulting to local storage area
+Initialized empty Git repository in .git/
------------------------------------------------
You've now initialized the working directory--you may notice a new