title: How to Configure Capistrano to Deploy from Local Git Repository?
body: <p>What changes do I need to make to the <code>deploy.rb</code> file below to make it deploy my app from a local git repo? If I can't deploy from a local repo, can I have capistrano use the working copying instead?</p>
  
  <pre><code>set :application, "my_app"
  set :repository, "."
  set :local_repository, "file:///path/to/application/.git"
  set :deploy_to, "/data/www/apps/#{application}"
  set :deploy_via, :copy
  set :copy_cache, true
  set :user, "dane"
  set :use_sudo, false
  
  set :scm, :git # Should I change this to :none
  set :branch, "master"
  </code></pre>