Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:44:24+00:00 2026-06-02T06:44:24+00:00

To simplify my concern, I narrowed it to the following: I have a GIT

  • 0

To simplify my concern, I narrowed it to the following:

I have a GIT alias defined as such:

cii = "!f() { git commit "$@"; }; f"

When I run

$ git cii -m "test1"

It works fine, but it fails with

$ git cii -m "test1 and test2"
error: pathspec 'and' did not match any file(s) known to git.
error: pathspec 'test2' did not match any file(s) known to git.

Any idea ?

Note that my real alias is much more complex that the above, so responding with
cii = “commit” is not an option. The point here is passing the input parameters to the function.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:44:25+00:00Added an answer on June 2, 2026 at 6:44 am

    You need to quote the embedded doublequotes.

    cii = "!f() { git commit \"$@\"; }; f"
    

    git will then perform standard shell expansion of "$@" which translates to a single word for each parameter – like "$1" "$2" "$3" ...

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To simplify the scenario, let's say we have a list of People with FirstName
I would like to simplify my main build scripts, and I'd like to have
To simplify my question, if I have a Makefile as below %: %.c gcc
I am trying to simplify some of the bookmarklets that I have created over
Simplify the following xPath so that it is as small as possible but still
Lets simplify. Lets say I have this class: class Foo { public string Name
To simplify the problem, I have a graph that contains nodes and edges which
I want to simplify the following code: public static void main(String[] args) { int
To simplify, I have tree tables: products , products-vs-orders , orders products fields :
I'll simplify the problem as much as possible: I have an oracle table: row_priority,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.