can't clone or add in git repo

548 views Asked by At

enter image description here

when ever I'm trying to check my git status or want to clone in my repsitry the cmd is showing me this, can someone report a problem & help me out with an error?

1

There are 1 answers

0
VonC On

That means you have:

  • git init (initialize) a new local repository in C:\user\asfat\octacode.github.io
  • created files and folders (like site)

Nothing has been added yet to the local Git repository, nothing has been committed.

Go back one level up, git add . and git commit -m "My first commit".
If you try to add in the site folder, and if that folder is empty, you would not be able to add "nothing".

Check that you have defined a remote origin URL

git remote -v
# if not
git remote add origin https://github.com/asfat/asfat.github.io
git push -u origin main

Note that you would not be able to push back to octacode.github.io, unless you actually are Kumar Shashwat (octacode), and not Asfat Uddin Rahat .