Skip to contentSkip to conversation

Git stash bug

DISCUSSION Anirban Mitra 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I ran into a git stash bug. I added a new project config file used by the IDE in a commit and later reverted the commit. But the same file again created by the IDE and now when I use git stash that file changes are also stashed. When I try stash pop, it complains that the file will be overwritten and aborts.

I did not expect this because I have reverted the commit adding the file. Is it intended behaviour? Am I missing something or is this a known bug and will be fixed in later releases? I am using Git version 1.7.0.4.

-- Anirban

#1 lore raw

Hi,

Sorry for the last msg. It seems the behavior happened in a different situation then what I described which now I can't reproduce.

-- Anirban

Quoted 7 lines · Anirban Mitra

Hi,

I ran into a git stash bug. I added a new project config file used by the IDE in a commit and later reverted the commit. But the same file again created by the IDE and now when I use git stash that file changes are also stashed. When I try stash pop, it complains that the file will be overwritten and aborts.

I did not expect this because I have reverted the commit adding the file. Is it intended behaviour? Am I missing something or is this a known bug and will be fixed in later releases? I am using Git version 1.7.0.4.

-- Anirban