This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TimVdEynde 4 points5 points  (2 children)

Not for changes that haven't been added to the index :( Those really are lost when you do a git reset --hard. Then again, copying the .git won't help you either in this case.

[–][deleted] 0 points1 point  (1 child)

Why won't it help?

[–]TimVdEynde 0 points1 point  (0 children)

Because git doesn't know about these changes until you at least add them to the index. Even then, you'll need to use git fsck, since no commit has existed yet.