title: How to pass arguments in double quotes inside bash script
body: <p>normally use these 3 commands to push my code to repo</p>
  
  <pre><code>git add .
  git commit -m $1
  git push -u git@myrepo.git  master
  </code></pre>
  
  <p>I tried to put all 3 commands in a script and thereby execute them together</p>
  
  <p>I tried with ./upload_to_github.sh "minor change"</p>
  
  <pre><code>#!/bin/bash
  #upload_to_github.sh
  git add .
  git commit -m $1
  git push -u git@myrepo.git  master
  </code></pre>
  
  <p>it gives error </p>
  
  <pre><code>error: pathspec 'change' did not match any file(s) known to git.
  </code></pre>
  
  <p>I as well tried the following one but of no use</p>
  
  <pre><code>#!/bin/bash
  #upload_to_github.sh
  git add .
  git commit -m \"$1\"
  git push -u git@myrepo.git  master
  </code></pre>
  
  <p>which gives me the error</p>
  
  <pre><code>error: pathspec '"change\""' did not match any file(s) known to git.
  </code></pre>
  
  <p>both of them doesn't seem to be working. How do I pass my $1 along with double quotes inside the script?</p>