Skip to content

Commit 8ad19f0

Browse files
author
Kaartic Sivaraam
committed
Corrected the example command to be more specific
Made the example command reflect the command that needs to be used by the user.
1 parent 6ac0925 commit 8ad19f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/sections/stashing-cleaning.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Saved working directory and index state WIP on master: 1b65b17 added the index f
189189

190190
If you stash some work, leave it there for a while, and continue on the branch from which you stashed the work, you may have a problem reapplying the work.
191191
If the apply tries to modify a file that you’ve since modified, you’ll get a merge conflict and will have to try to resolve it.
192-
If you want an easier way to test the stashed changes again, you can run `git stash branch`, which creates a new branch for you, checks out the commit you were on when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully:
192+
If you want an easier way to test the stashed changes again, you can run `git stash branch <branch-name>`, which creates a new branch for you with the given `branch-name`, checks out the commit you were on when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully:
193193

194194
[source,console]
195195
----

0 commit comments

Comments
 (0)