1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23: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

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.