David
David

Reputation: 1064

How can I recover files from disk after git reset --hard

I reset to HEAD but did not stage the changes to the files I was working on.

Can I recover the changes made to the files using disk recovery? Or does git overwrite the files and save to the same location on the disk?

Upvotes: 1

Views: 68

Answers (1)

VonC
VonC

Reputation: 1323373

Can I recover the changes made to the LaTeX files using disk recovery?

That seems your best option (unless you are using an IDE which saves a local history)

An unstaged change is really never seen by git and cannot be recovered in the git repo.

Upvotes: 2

Related Questions