I have a client with a bunch of messy things done to it that I want to stash off so that I have a pristine state but can get back to the mess at a later date. Things I want to stash and then recover may include:
- things in the scope of
.gitignore
- new un-tracked files
- new, tracked, but un-staged files (i.e.
git add -N
) - staged but not committed files.
- etc.
- etc.
- etc.
In short, I want the same effect I'd get by using git clone
to create a new client and doing the work there, but all in the same client.
EDIT: a specific case where things like git stash -a
fail to accomplish what I want:
touch new_file
git add -N new_file
git stash -a
That results in an error and makes stash
do nothing at all.