Trouble with Cloning and Committing Repository

I’m having issues with cloning and committing a repository. Here’s what happened:

  1. I tried to clone the repo using: git clone codecrafters-redis-go Unfortunately, the terminal crashed, and when it restarted, the cloned repo was empty.
  2. I then navigated into the repo: cd codecrafters-redis-go
  3. Next, I committed the empty repo: git commit --allow-empty -m 'test' git push origin master

Even after removing the repository and re-cloning it, it remains empty.

@YounesseAmhend Ah, I think that pushing the empty commit might’ve overridden the repo contents. Could you try deleting your repository and creating a new one?

You can do this from the menu on the top-left:

It works!! Thank you very much.

1 Like

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