I have been having some trouble committing a file to GitHub. I can make it to git add, but soon as I try $ git commit -m 'my message'
I get an error, not allowing me to complete the process of adding a file.
$ git add HelloWorld.md
$ git commit -m 'Hello world'
I get the following answer (deleted: README.md
& .DS_Store
are in red):
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
deleted: README.md
Untracked files:
.DS_Store
no changes added to commit
$ git rm README.md $ git rm .DS_Store git $ commit -m "deleting files" $ git push -u origin master
git diff -- HelloWorld.md
tell you?git diff -- HelloWorld.md
nothing;$ git rm README.md
fatal: pathspec 'README.md' did not match any files;git rm .DS_Store
fatal: pathspec '.DS_Store' did not match any files;commit -m "deleting files"
-bash: commit: command not found ...