README Commit Deleted After Cloning

A few months ago, I wrote a README for my implementation of the Redis challenge. Recently, after the new extension was released, I cloned the repository back to my PC to continue working on it. However, the only commit present on my README file is the one made by the Codecrafters Bot. It seems my original commit was deleted or lost when cloning the repository.

I believe my README is gone for good, and unfortunately, I’ll have to spend time recreating it from scratch. I’m reaching out to the Codecrafters team to please look into this issue to prevent it from happening to others.

Thank you for your attention.

Hey @danilovict2, looks like the only commit involving README.md is from 9 months ago:

It seems my original commit was deleted or lost when cloning the repository.

There are a few possibilities here:

  1. The changes only existed locally and was never pushed to the remote.

  2. The changes could have been made in a separate branch that wasn’t pushed or merged.

  3. A local commit could have been lost due to a rebase, reset, or by overwriting local changes during a re-clone.

I’m a 100% sure the commit was on GitHub.

I’m a 100% sure the commit was on GitHub.

Ah, I think I see what might have happened.

Just to confirm:

  • You had previously enabled the Publish to GitHub feature to sync your repo to GitHub.

  • You made changes to README.md directly in your GitHub repo.

  • Recently, you resumed work by cloning from our Git server.

  • At some point, your GitHub repo may have been overwritten, possibly due to the Publish to GitHub feature.

Does that sound right? @danilovict2

Yes that’s it. Here is my GitHub repo if it’s of any use: GitHub - danilovict2/go-redis

@danilovict2 Luckily, GitHub preserves your README.md commit in its Activity history:

To avoid issues like this, we recommend pushing exclusively to our Git server, rather than committing directly to GitHub.

Okay thank you very much!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.