I just recently cloned a repo and made changes to it. I pulled the latest commits from a branch called dev but before that I stashed my changes with a message using this command:
git stash save "mymessage"
giving me a message after that saying:
C:\Program Files (x86)\Git/libexec/git-core\git-stash: line 186: c:/Users/Mine/source/repos/My Branch/ .git/logs/refs/stash: No such file or directory Saved working directory and index state On dev: mymessage HEAD is now at 1413c2 Latest Commit.
then used
git pull
just that. The pull was fine. My local repo was now updated but then when I tried to apply my stash. No list was found when I checked. Even after using
git stash list
nothing appears but another command line. When I to try use
git stash apply
it gives me a message saying:
ref/stash@{0} is not a valid reference
I've done this a couple times before from a another local repo and it's doing fine. This is the first time I've encountered this from a new local repo.