I am trying to make a bash function to automatically add everything that has not been verified or changed in my working tree, commit it and click.
It looks like this:
gcp() {
git add -- .;
git commit -m \"$1\";
git push origin $2;
}
However, when I check this, I get:
$ gcp "test this" master
error: pathspec 'this"' did not match any file(s) known to git.
How to get the correct citation behavior around variables?
user4160045
source
share