File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ For clarity's sake all examples in this document use a customized bash prompt in
63
63
- [ There were conflicts] ( #there-were-conflicts )
64
64
- [ Stashing] ( #stashing )
65
65
- [ Stash all edits] ( #stash-all-edits )
66
- - [ Stash specific file ] ( #stash-specific-file )
66
+ - [ Stash specific files ] ( #stash-specific-files )
67
67
- [ Stash with message] ( #stash-msg )
68
68
- [ Apply a specific stash from list] ( #stash-apply-specific )
69
69
- [ Miscellaneous Objects] ( #miscellaneous-objects )
@@ -902,15 +902,21 @@ If you also want to stash untracked files, use `-u` option.
902
902
$ git stash -u
903
903
```
904
904
905
- <a name =" stash-specific-file " ></a >
906
- ### Stash specific file
905
+ <a name =" stash-specific-files " ></a >
906
+ ### Stash specific files
907
907
908
908
To stash only one file from your working directory
909
909
910
910
``` sh
911
911
$ git stash push working-directory-path/filename.ext
912
912
```
913
913
914
+ To stash multiple files from your working directory
915
+
916
+ ``` sh
917
+ $ git stash push working-directory-path/filename1.ext < space> working-directory-path/filename2.ext
918
+ ```
919
+
914
920
<a name =" stash-msg " ></a >
915
921
### Stash with message
916
922
You can’t perform that action at this time.
0 commit comments