5/7 Deploy Website Issue

I am trying to deploy a website with this command:

git commit -m "Save my work"

But I’m getting this error:

On branch master
nothing to commit, working directory clean

Can someone explain this to me?

You have to git add -filenameGoesHere- before committing. If you don’t add anything, there’s nothing to commit.

1 Like

I’m trying to do that but it isn’t working. All I get is this error:

fatal: pathspec 'hello-world' did not match any files.

That would mean that 'hello-world' is not in your current directory probably. You can check with the ls command. Or git status will tell you also all the files that were modified and that can be added.

Oh, I forget about that.