1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Stash Everything as a git til

This commit is contained in:
jbranchaud
2018-10-04 16:45:43 -05:00
parent 5021590d5a
commit 1b025e4f88
2 changed files with 17 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/).
_706 TILs and counting..._
_707 TILs and counting..._
---
@@ -201,6 +201,7 @@ _706 TILs and counting..._
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
- [Staging Changes Within Vim](git/staging-changes-within-vim.md)
- [Staging Stashes Interactively](git/staging-stashes-interactively.md)
- [Stash Everything](git/stash-everything.md)
- [Stashing Only Unstaged Changes](git/stashing-only-unstaged-changes.md)
- [Stashing Untracked Files](git/stashing-untracked-files.md)
- [Untrack A Directory Of Files Without Deleting](git/untrack-a-directory-of-files-without-deleting.md)

15
git/stash-everything.md Normal file
View File

@@ -0,0 +1,15 @@
# Stash Everything
Running the `git stash` command will take all the changes to tracked files
in the working directory and stash them away. You can tack on the
`--include-untracked` flag to make sure that untracked files are also
included in the stash.
You can take this a step further with the `--all` flag. This will stash
everything included files that you've told git to ignore.
You probably don't want to do this. I ran this command and realized after
the command hung for about 10 seconds that I had just stashed the
`node_modules` directory.
See `man git-stash` for more details.