@@ -51,18 +51,18 @@ OPTIONS
51
51
save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]::
52
52
push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [-m|--message <message>] [--] [<pathspec>...]::
53
53
54
- Save your local modifications to a new 'stash' and roll them
54
+ Save your local modifications to a new 'stash entry ' and roll them
55
55
back to HEAD (in the working tree and in the index).
56
56
The <message> part is optional and gives
57
57
the description along with the stashed state.
58
58
+
59
59
For quickly making a snapshot, you can omit "push". In this mode,
60
60
non-option arguments are not allowed to prevent a misspelled
61
- subcommand from making an unwanted stash. The two exceptions to this
61
+ subcommand from making an unwanted stash entry . The two exceptions to this
62
62
are `stash -p` which acts as alias for `stash push -p` and pathspecs,
63
63
which are allowed after a double hyphen `--` for disambiguation.
64
64
+
65
- When pathspec is given to 'git stash push', the new stash records the
65
+ When pathspec is given to 'git stash push', the new stash entry records the
66
66
modified states only for the files that match the pathspec. The index
67
67
entries and working tree files are then rolled back to the state in
68
68
HEAD only for these files, too, leaving files that do not match the
@@ -89,10 +89,10 @@ The `--patch` option implies `--keep-index`. You can use
89
89
90
90
list [<options>]::
91
91
92
- List the stashes that you currently have. Each 'stash' is listed
93
- with its name (e.g. `stash@{0}` is the latest stash , `stash@{1}` is
92
+ List the stash entries that you currently have. Each 'stash entry ' is
93
+ listed with its name (e.g. `stash@{0}` is the latest entry , `stash@{1}` is
94
94
the one before, etc.), the name of the branch that was current when the
95
- stash was made, and a short description of the commit the stash was
95
+ entry was made, and a short description of the commit the entry was
96
96
based on.
97
97
+
98
98
----------------------------------------------------------------
@@ -105,11 +105,12 @@ command to control what is shown and how. See linkgit:git-log[1].
105
105
106
106
show [<stash>]::
107
107
108
- Show the changes recorded in the stash as a diff between the
109
- stashed state and its original parent. When no `<stash>` is given,
110
- shows the latest one. By default, the command shows the diffstat, but
111
- it will accept any format known to 'git diff' (e.g., `git stash show
112
- -p stash@{1}` to view the second most recent stash in patch form).
108
+ Show the changes recorded in the stash entry as a diff between the
109
+ stashed contents and the commit back when the stash entry was first
110
+ created. When no `<stash>` is given, it shows the latest one.
111
+ By default, the command shows the diffstat, but it will accept any
112
+ format known to 'git diff' (e.g., `git stash show -p stash@{1}`
113
+ to view the second most recent entry in patch form).
113
114
You can use stash.showStat and/or stash.showPatch config variables
114
115
to change the default behavior.
115
116
@@ -149,26 +150,27 @@ branch <branchname> [<stash>]::
149
150
+
150
151
This is useful if the branch on which you ran `git stash save` has
151
152
changed enough that `git stash apply` fails due to conflicts. Since
152
- the stash is applied on top of the commit that was HEAD at the time
153
- `git stash` was run, it restores the originally stashed state with
154
- no conflicts.
153
+ the stash entry is applied on top of the commit that was HEAD at the
154
+ time `git stash` was run, it restores the originally stashed state
155
+ with no conflicts.
155
156
156
157
clear::
157
- Remove all the stashed states . Note that those states will then
158
+ Remove all the stash entries . Note that those entries will then
158
159
be subject to pruning, and may be impossible to recover (see
159
160
'Examples' below for a possible strategy).
160
161
161
162
drop [-q|--quiet] [<stash>]::
162
163
163
- Remove a single stashed state from the stash list. When no `< stash>`
164
- is given, it removes the latest one. i.e. `stash@{0}`, otherwise
165
- ` <stash>` must be a valid stash log reference of the form
166
- `stash@{<revision>}`.
164
+ Remove a single stash entry from the list of stash entries.
165
+ When no `<stash>` is given, it removes the latest one.
166
+ i.e. `stash@{0}`, otherwise ` <stash>` must be a valid stash
167
+ log reference of the form `stash@{<revision>}`.
167
168
168
169
create::
169
170
170
- Create a stash (which is a regular commit object) and return its
171
- object name, without storing it anywhere in the ref namespace.
171
+ Create a stash entry (which is a regular commit object) and
172
+ return its object name, without storing it anywhere in the ref
173
+ namespace.
172
174
This is intended to be useful for scripts. It is probably not
173
175
the command you want to use; see "save" above.
174
176
@@ -182,10 +184,10 @@ store::
182
184
DISCUSSION
183
185
----------
184
186
185
- A stash is represented as a commit whose tree records the state of the
186
- working directory, and its first parent is the commit at `HEAD` when
187
- the stash was created. The tree of the second parent records the
188
- state of the index when the stash is made, and it is made a child of
187
+ A stash entry is represented as a commit whose tree records the state
188
+ of the working directory, and its first parent is the commit at `HEAD`
189
+ when the entry was created. The tree of the second parent records the
190
+ state of the index when the entry is made, and it is made a child of
189
191
the `HEAD` commit. The ancestry graph looks like this:
190
192
191
193
.----W
@@ -269,12 +271,12 @@ $ edit/build/test remaining parts
269
271
$ git commit foo -m 'Remaining parts'
270
272
----------------------------------------------------------------
271
273
272
- Recovering stashes that were cleared/dropped erroneously::
274
+ Recovering stash entries that were cleared/dropped erroneously::
273
275
274
- If you mistakenly drop or clear stashes , they cannot be recovered
276
+ If you mistakenly drop or clear stash entries , they cannot be recovered
275
277
through the normal safety mechanisms. However, you can try the
276
- following incantation to get a list of stashes that are still in your
277
- repository, but not reachable any more:
278
+ following incantation to get a list of stash entries that are still in
279
+ your repository, but not reachable any more:
278
280
+
279
281
----------------------------------------------------------------
280
282
git fsck --unreachable |
0 commit comments