I used magit to store current workspace content to git using z z
, which I expected to store my work in a stash. However, process log showed that magit simply did git reset --hard HEAD
and created an empty stash. I expected some git stash
.
Ok, then I thought I might want to "Save workspace", so I did z w
and what magit issued was git checkout -- .
, plus empty stash.
Err, ok, maybe I want a "Snapshot"? That did "something", creating an empty stash...
I could not find the issued command in buffer the magit-process
buffer of the current repository...
I am confused what is happening here...
PS: I had much luck, that I did not lose my work.
EDIT:
To be more precise: I want to know why I almost lost all changes (all done to already tracked files).
What I learned already is, that magit creates the stashes somehow and then performs reasonable cleanup.
EDIT:
Fault was making process-environment
file-local and fiddling with environment, from a .dir-local.el
. Lessons learned: Read the docs and don't do that!
git stash
does not provide, and so calling the latter is insufficient.magit
is cool.