2
I’m a little inexperienced with GIT. I was working on a branch, but I wanted to get some updates on the master branch, but git pull
failed as there were no changes committed. Then I just used the command git reset --hard HEAD
. But I’d forgotten about the unmerited changes in the other branch, other than the ones I wanted to rule out.
The question is, Is there any way to recover such files? Ali has several hours of work. If anyone can help me.
Look, I hate to bring you this kind of news, but as far as I’m concerned, there’s nothing that can be done about commited changes in git. If you were using an IDE there is a chance to find these changes in the local history.
– Anthony Accioly
Yeah, I was wondering :(
– mau humor
Yes, I am using Netbeans. I can fully recover the new files, but it seems that the modifications to existing files are not. But that’s like 65% or 70% of lost content. Thanks.
– mau humor
Hi bad mood. Works on existing files too, just right click and view the versions on Local History , find the version you want and reverse the file. Later put an answer calmly.
– Anthony Accioly
Yes, I noticed that later, apart from a change or two, I was able to recover everything. I thank you again :D
– mau humor