title: Git: Rename or move all files at once
body: <p>I want to rename all erb files in my Git project to haml.(like index.html.erb to index.html.haml)</p>
  
  <p>If I rename each file, I have to type the following command more than thirty times.</p>
  
  <pre><code>$ git mv app/views/pages/index.html.erb app/views/pages/index.html.haml
  </code></pre>
  
  <p>I tried the command below, but it did not work.</p>
  
  <pre><code>$ git mv app/views/**/*.erb app/views/**/*.haml
  
  usage: git mv [options] &lt;source&gt;... &lt;destination&gt;
  
      -n, --dry-run         dry run
      -f, --force           force move/rename even if target exists
      -k                    skip move/rename errors
  </code></pre>
  
  <p>How can I rename them at once? </p>