1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-03-10 12:48:43 -03:00

flight-rule to stash multiple files at once

This commit is contained in:
Dinesh 2017-11-23 01:11:14 +05:30
parent 7412b89d42
commit 4bf16453c6

View File

@ -63,7 +63,7 @@ For clarity's sake all examples in this document use a customized bash prompt in
- [There were conflicts](#there-were-conflicts) - [There were conflicts](#there-were-conflicts)
- [Stashing](#stashing) - [Stashing](#stashing)
- [Stash all edits](#stash-all-edits) - [Stash all edits](#stash-all-edits)
- [Stash specific file](#stash-specific-file) - [Stash specific files](#stash-specific-files)
- [Stash with message](#stash-msg) - [Stash with message](#stash-msg)
- [Apply a specific stash from list](#stash-apply-specific) - [Apply a specific stash from list](#stash-apply-specific)
- [Miscellaneous Objects](#miscellaneous-objects) - [Miscellaneous Objects](#miscellaneous-objects)
@ -902,8 +902,8 @@ If you also want to stash untracked files, use `-u` option.
$ git stash -u $ git stash -u
``` ```
<a name="stash-specific-file"></a> <a name="stash-specific-files"></a>
### Stash specific file ### Stash specific files
To stash only one file from your working directory To stash only one file from your working directory
@ -911,6 +911,12 @@ To stash only one file from your working directory
$ git stash push working-directory-path/filename.ext $ git stash push working-directory-path/filename.ext
``` ```
To stash multiple files from your working directory
```sh
$ git stash push working-directory-path/filename1.ext <space> working-directory-path/filename2.ext
```
<a name="stash-msg"></a> <a name="stash-msg"></a>
### Stash with message ### Stash with message