Error When Cloning Github Repository

Asked

Viewed 87 times

0

I’m trying to initialize the existing repository that I have Github but when I clone it, it’s all right.

**Cloning into 'ecommerce'...
remote: Counting objects: 1802, done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 1802 (delta 44), reused 72 (delta 34), pack-reused 1710
Receiving objects: 100% (1802/1802), 8.33 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (449/449), done.**

But when I open the terminal in the cloned folder and give a git status, it gives an error as if my repository is empty, I already searched commands and everything but is not working with any.

$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
  • 5

    Your branch is up to date, is a message saying that you have no changes to commit and that the repository is up to date origin.

  • Really, you’re right, but I wanted to undo a commit, in the repository, but I did something wrong trying to undo, and I ended up erasing from my local machine and cloning the repository, but I was giving the same error, but after a commit returned to normal, thank you!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.