Skip to content

Commit 5f86f11

Browse files
committed
Merge pull request progit#746 from daftano/en
updating 'git stash list' output
2 parents e112cb7 + 9c4252b commit 5f86f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/06-git-tools/01-chapter6.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ At this point, you can easily switch branches and do work elsewhere; your change
446446

447447
$ git stash list
448448
stash@{0}: WIP on master: 049d078 added the index file
449-
stash@{1}: WIP on master: c264051... Revert "added file_size"
450-
stash@{2}: WIP on master: 21d80a5... added number to log
449+
stash@{1}: WIP on master: c264051 Revert "added file_size"
450+
stash@{2}: WIP on master: 21d80a5 added number to log
451451

452452
In this case, two stashes were done previously, so you have access to three different stashed works. You can reapply the one you just stashed by using the command shown in the help output of the original stash command: `git stash apply`. If you want to apply one of the older stashes, you can specify it by naming it, like this: `git stash apply stash@{2}`. If you don’t specify a stash, Git assumes the most recent stash and tries to apply it:
453453

0 commit comments

Comments
 (0)