Is it possible to do equivalent of git reset --hard --patch
? (as this gives me: fatal: --patch is incompatible with --{hard,mixed,soft}
).
In other words, how to do git reset --patch
, but have the "unstaged" changes immediately discarded? (especially for newly added files - I don't want them littering my working directory, as I have it already quite littered with other stuff... so it's hard to find the new litter to remove it by hand...)
edit: or, maybe something like "multiple staging areas", where chunks can be passed from one to another easily like with --patch?
edit2: This seems not clear from the above question, so I'll copy a disclaimer from a comment I made below: Please note I don't want to have any files which show as "new file" in "Changes to be committed" in output of git status
moved to "Untracked files". And for each of them I want to be able to explicitly decide if I want to keep them or discard them permanently (i.e. delete from disk).
In still other words: I'm trying to split a commit in two, but I have some "new files" in it. Some of them I want to move into the "other half" of the commit. But I don't want to have to add them one by one from the list of "Untracked files".
edit3: again to clarify: I have numerous "Untracked files" staying around that I don't want to add to .gitignore or .git/info/exclude for one or other reason.