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 9268461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:49:14+00:00 2026-06-18T14:49:14+00:00

Trying to prepare simple shell commit script for git, like git add . git

  • 0

Trying to prepare simple shell commit script for git, like

git add .
git commit -m $@
git push origin master

to run it in ./script.sh ‘commit message’ manner

I ran into issue with commit messages containing space. I understand I need to wrap $@ in quotes on string 2, but all my tries have failed so far(I tried straight ‘, then \’, then fancy ‘\” I found while researching, still no luck). Please help!

  • 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-18T14:49:15+00:00Added an answer on June 18, 2026 at 2:49 pm

    Just replace $@ with "$@". That should do the trick.

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

Sidebar

Related Questions

what I am trying to do is having a script compute something, prepare a
I have written a simple audio player on android(below). And trying to run on
Trying to prepare good build environment for my js library. According to reviews on
I am trying to prepare my activity's how to use windows but I am
So i am trying to build and prepare using PDO, a mysql query dynamically.
I am trying to create a table though prepare statement but it is giving
I'm trying to delete with qt with this code: int jobId = 655; query.prepare(DELETE
I have prepared a r script and trying to apply the same codes in
I am trying to make a simple SELECT query to my database with a
I'm trying for the first time to create a simple Stored Procedure. I have

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.