Git recover stashed changes after merge --no-ff -
i use "git stash" , "git stash pop" save , restore changes in working tree. did , previous uncommitted changes gone.
git stash -u git checkout master git pull --rebase git checkout dev git merge --no-ff master 10 files changed, 1000 insertions(+), 2000 deletions(-) git stash pop conflict (content): merge conflict in file.ext then thought revert merge, , did:
git reset --hard origin/master git reset --hard origin/master now don't see of previous stashed uncommitted changes anywhere in file.ext, merged code. how can bring changes stashed?
when pop off stash, removes stash well. stashed changes dumped working directory. then, when reset, reverted same changes.
git reset --hard 1 of few dangerous "you-could-totally-lose-work-here" commands. this explains different aspects of reset well.
to sum up, aren't in stash anymore, , reset working directory. lost ether of bits , bytes. though since changes once stashed, may able find commit git fsck --lost-found.
Comments
Post a Comment