8
rated 0 times
[
8]
[
0]
/ answers: 1 / hits: 648
/ 2 Years ago, thu, april 28, 2022, 1:53:06
In order to make uploading the code to github easily, I created a sh script
#commit.sh
git add .
git commit -m $1
git push origin master
But when I run it by saying ./commit.sh "comment1 comment2 comment3"
, I get the error of:
error: pathspec 'comment2' did not match any file(s) known to git.
error: pathspec 'comment3' did not match any file(s) known to git.
What's wrong and how do I make it work?
More From » 12.10