aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-stage.txt
diff options
context:
space:
mode:
authorScott Chacon <schacon@gmail.com>2008-12-01 22:14:55 -0800
committerJunio C Hamano <gitster@pobox.com>2008-12-02 16:13:16 -0800
commit11920d28da1ac1b65eb4041c1b7355924e5d1366 (patch)
tree28c1936752ae6e0bb122bf128734b88bb0f713a9 /Documentation/git-stage.txt
parentd404bf0288ac1a2c4276d009c0e1c88519e5a7c9 (diff)
downloadgit-11920d28da1ac1b65eb4041c1b7355924e5d1366.tar.gz
Add a built-in alias for 'stage' to the 'add' command
This comes from conversation at the GitTogether where we thought it would be helpful to be able to teach people to 'stage' files because it tends to cause confusion when told that they have to keep 'add'ing them. This continues the movement to start referring to the index as a staging area (eg: the --staged alias to 'git diff'). Also adds a doc file for 'git stage' that basically points to the docs for 'git add'. Signed-off-by: Scott Chacon <schacon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-stage.txt')
-rw-r--r--Documentation/git-stage.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/git-stage.txt b/Documentation/git-stage.txt
new file mode 100644
index 0000000000..7f251a5865
--- /dev/null
+++ b/Documentation/git-stage.txt
@@ -0,0 +1,19 @@
+git-stage(1)
+==============
+
+NAME
+----
+git-stage - Add file contents to the staging area
+
+
+SYNOPSIS
+--------
+[verse]
+'git stage' args...
+
+
+DESCRIPTION
+-----------
+
+This is a synonym for linkgit:git-add[1]. Please refer to the
+documentation of that command.