0

Repo: sumitridhal/n-th-digit-of-e

Count shown in github profile and commit count in repository not matching. Due to this some of latest commits are missing from repository. Is there any way i can retrieve all my commits?

repo

Sumit Ridhal
  • 1,359
  • 3
  • 14
  • 30

1 Answers1

1

If you rebase and then force push, you need to try and restore the previous master HEAD which was overwritten by the new (and shorter) history.

Check git reflog: you should see your old commit before rebase.
Or See "Does github remember commit IDs?": you can query the push events to get back an old commit that way.

In both instances, you can at least create a branch based on that commit (either local branch on your PC, or a remote branch directly through the GitHub web interface), in order to see if you get back your history.
The number will still be off, but at least your missing commits will be there, and you can try again to cherry-pick/order them as you want.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250