Originally I had commited to the wrong branch, wanted to take that back and commit to the right one (master). I wanted to go the route that is suggested in the accepted answer from How to fix committing to the wrong Git branch?
So I made a soft reset, which as I understand it, leaves the working copy completely untouched
git reset --soft HEAD^
Followed by the attempt to checkout the master
git checkout master
I was told, that certain local changes would be overwritten by the checkout and that I should commit or stash the changes. I choose to stash them. I used the Git Extensions stashing command, which I believe is simply
git stash
At least that is what is shown when I try it on other repositories now. I understand, that this doesn't include untracked files, but it also doesn't clean them out.
Then I switched to the master branch via the Git Extensions GUI. Then I wanted to pop the stash, which failed due to some conflicts, that would arise. And at this point I noticed, that an untracked (but ignored) folder is missing (.\MyScripts). Other untracked (and ignored) files are there (e.g. *.log files)
The difference, that I can see is, that the MyScripts folder is excluded via .git/info/exclude and the *.log files are excluded via .gitignore
Does that make sense to anyone? Where is my MyScripts folder? How to get it back?