0

I have an issue with my GitHub repo. The issue is that a previous "merge" deleted some commits.

I found the commit that I want to restore in the GitHub API, but I can't get it.

My repo: https://github.com/DavidRnR/WebEntrega/

I need this commit/sha:

   "commits": [
        {
          "sha": "47af90bec132e9b4e0ac87efa720007e79682193",
          "author": {
            "email": "carlosdavidmartin@gmail.com",
            "name": "David Martín"
          },
          "message": "Ultimando detalles en JS. Finalizada",
          "distinct": true,
          "url": "https://api.github.com/repos/DavidRnR/WebEntrega/commits/47af90bec132e9b4e0ac87efa720007e79682193"
        }
jacefarm
  • 6,061
  • 6
  • 34
  • 45
  • Merging one branch into a target branch does not delete commits in the target. My hunch is that some commits in your feature branch went away during the merge, but this is how merging works. Anyway, if you include a branch diagram we might be able to resolve this. – Tim Biegeleisen Nov 11 '16 at 04:42
  • http://stackoverflow.com/questions/10099258/how-can-i-recover-a-lost-commit-in-git might address your issue. – jacefarm Nov 11 '16 at 04:59
  • I don't know what was the problem. If you check my repo you can't get to the commit "Ultimando detalles en JS. Finalizada". I tried.. git checkout 47af90bec132e9b4e0ac87efa720007e79682193 And also differents ways. I red about make a token and then try to get the commit but I'm confused. – David Martin Nov 11 '16 at 05:28
  • Just to be clear, you specifically want to do this with the GitHub API, not git? – 1615903 Nov 11 '16 at 10:21

0 Answers0