So I try to learn using git following a tutorial video
First I have my folder called git on my desktop.by saying code .
I open it up in vsCode.After that I do sudo git init
to initalize git. Then I touch app.js, index.html and style.css to the git folder and it also adds it in vscode.Next is adding some random text to app.js and running git add .
and then git commit -m "made first commit"
. Till this point everything is running just as it should.
But then I go to app.js and add some more stuff.If running git status
it says: On branch master nothing to commit, working tree clean
.When trying git add .
and then git commit m-"second commit"
it says:error: pathspec 'm-' did not match any file(s) known to git
error: pathspec 'second commit' did not match any file(s) knwon to git