0

I am using Sublime text and a Github plugin.

When I tried to Commit and Sync it reverted all my files to the version in the online (from three days ago).

The commit is not showing up in the history.

Is there any way that I can get my files back?

Livvy Jeffs
  • 159
  • 1
  • 1
  • 11

1 Answers1

4

The problem is that you might not have added your modification to the index before making:

  • your "commit" (which committed nothing as a result) and
  • your sync (which might have reset your index to the latest fetched commit)

It is always preferable, in case of trouble, to fallback to the command line and check:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I was about to give up when I tried your git fsck --full --unreachable --no-reflog. Got back 4hrs of work. You just made my day. Thank you soooo much :) – sachadso Jan 27 '15 at 22:29