Losing files in PhpStorm each Branch change

Stash in PhpStorm often leads to losing files. I've also had to mostly stop using built in Git Features on PhpStorm as my .git gets corrupted at least weekly.

This issue may in part lie between PhpStorm and Github but before we blame git some of the issue is PhpStorm as well.

The result is that I no longer trust Git or the IDE with code because I frequently lose code on commit (where git sends it up and it never persists on Github) or where it is stashed and lost on restore by PhpStorm.

I've just changed branch in PHPStorm now to apply changes. Restore of the Stash failed. On copying the changed files back into the project only some of the files are picked up and I'm left having to copy and verify code file by file. And I get that eerie feeling that after banging my head with Git issues all of last week that we're back to where we started just because I dared to change branch.

For git I've created recipes to recover from a broken git repo. But in the last case the .git folder came down broken from Github after a fresh clone resulting in lots of reset removal and re-adding of files.

I've used many workarounds but PhpStorm's pushes often uses fast-forward automatically which seems to make things even worse for me. Which is why I'm back to terminal commands in a very nice IDE.

Help is needed because the issues I'm seeing is different results after doing the same things over and over. Really Einstein's definition of insanity.

0
1 comment

Hello Barco

From the description of your issue:
> I've also had to mostly stop using built in Git Features on PhpStorm as my .git gets corrupted at least weekly.
and 
>But in the last case the .git folder came down broken from Github after a fresh clone resulting in lots of reset removal and re-adding of files.

It sounds like there could be an issue with your hardware (perhaps it worth checking your disk and RAM and see whether they are working fine and do not have signs of degradation) 
IDE relies on command-line git and it invokes git commands when you click on actions, so I believe that if you would try to do some git commands in the terminal, when you observe issue with git in IDE, you will have the same results.

0

Please sign in to leave a comment.