GIT just destroyed a week of work

Hi,

I commited everything after having tested a packaging on windows

is there a way to recuperate my lost assets

there ain’t no words to express the raging hatred I feel against GIT right now

I commited everything, yet my project was not working, tons of changes were not commited, no Idea why

I reversed to my last commit and I lost a week of work

voilà…pffff

It sucks when I shoot myself in the foot! I know exactly how you feel.

I’ve gotten into the habit of committing small changes much more frequently, so there’s places to back up to if needed.
I also set up regular file backup (using windows backup) that puts backups of my disk to a file server, and then that file server updates to a cloud service every once in a while.
Yeah, losing files sucks, and once I’ve done it too many times, I put in place habits that save me from myself…

If I tell the shell to rm -rf * then it’s not the shell deleting my files, it’s me.
Git didn’t do anything. You told git to do things.

That doesn’t bring the files back, but maybe they are in the git reflog?

1 Like

since my project did not work anymore, I found legit to hard reset the commit I made this morning and was working fine… I wondered what were all these changes…most of them are binary files

it’s not like is I could diff view the files to figure wth is going on

It’s the last time I trust the commit menu in UE4 editor

I found some autosave files, and also unpaked my last release and copied files from the previous commit

that edit sucks beyond imagination when it’s about managing files and imports

some asset could not appear anymore in the content browser

I just wasted yet a couple of hours