diff --git a/README.md b/README.md index 4c6504f..88cd051 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/git/stash-everything.md b/git/stash-everything.md new file mode 100644 index 0000000..3c931ef --- /dev/null +++ b/git/stash-everything.md @@ -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.