Stashing untracked files
- From
- Neil Macneale <mac4-git@theory.org>
- Date
- Sep 29, 2007, 18:27 UTC
- Message-ID
- <46FE9924.7080006@theory.org>
Hi All,
I'm new to git, and I have a question regarding the best way to do something.
When using "git stash," in some cases I'd like to stash away files that are currently untracked. It seems to me like there should be a way to stash everything in a working directory so that the end result is a pristine tree. Then applying the stash will reinstate those file as untracked.
I understand that is not always desired, but sometimes it is (for me anyway). Perhaps an option like "git stash -u" could provide this behavior?
Is there some other approach that makes more sense? I don't want to start looking into this until I have some idea if this is a sane idea :-)
Thanks, Neil