I am trying to make a bash script which will:
- Add all changes to git
- Commit with a message I pass to the bash script
- Push it to the repo
I am trying to do this with:
m=\"$*\" git add -A echo git commit -m $m git push However, I am getting errors saying error: pathspec 'Q2,' did not match any file(s) known to git. for everything word I pass to the script.
How can I see what bash it actually doing? When I put echo in front of the offending line (which I presume is the commit) I get a correctly form command. If I put it in to the terminal, I runs find.