Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias with multi-word git commit message not working #847

Closed
sinrise opened this issue Feb 19, 2016 · 2 comments
Closed

Alias with multi-word git commit message not working #847

sinrise opened this issue Feb 19, 2016 · 2 comments

Comments

@sinrise
Copy link

sinrise commented Feb 19, 2016

As per the example in this closed issue, I created an alias: 'gcam=git commit -m $*' but it does not work. It returns the following error:

λ gcam test commit message using cmder alias
error: pathspec 'commit' did not match any file(s) known to git.
error: pathspec 'message' did not match any file(s) known to git.
error: pathspec 'using' did not match any file(s) known to git.
error: pathspec 'cmder' did not match any file(s) known to git.
error: pathspec 'alias' did not match any file(s) known to git.

@sinrise
Copy link
Author

sinrise commented Feb 19, 2016

Ok It does work if you add quotes around the message:
gcam "test commit message using cmder alias"
I'm not sure if you want to count this as even an issue if there is a way around having to do quotes. It's not much of a shortcut otherwise but it technically works.

@sinrise sinrise closed this as completed Feb 19, 2016
@daxgames
Copy link
Member

Unaliased git even requires quotes so this is not an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants