This is not the first time I am doing a hard reset on my repo but this time, I am getting an error. I am working on an iOS Project. I am doing the reset from terminal. How do I fix the fatal error
fatal: Could not parse object 'e88056ac5d58fb0bbd23d3fe929eac01712d964'
I have same problem and fixed.
This problem occurs when there have been changes like force-pushes to a git repo which is referenced in a Gemfile.
The solution is is to comment that gem line in Gemfile, run bundle, uncomment it and bundle again. Then the Gemfile.lock will reference a valid git revision.
Found in this link https://semaphoreci.com/docs/fail-could-not-parse-object.html
For me, the problem was that on my local machine I needed to pull the latest version of my branch, merge, and commit. Then the git reset --hard {hash}
worked on the server I was running the command on.
Try updating your local repo with
git fetch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With