title: Capistrano DigitalOcean Ubuntu 14.04 fatal: Not a git repository (or any of the parent directories) .git
body: <p>I have an app that i am working on that i did not set up and i don't have communication with the dev's that did. I have pushed up to it in the past but today for some reason i was not able to. Rails 4 with capistrano. When i looked at the app directory on the server i could find the <code>.gitignore</code> but no <code>.git</code> folder. I did a "<code>git init &amp;&amp; git remote add git_ssh_url</code>" but it didn't work. I was thinking about a git clone but i have no clue what that will do to the app. The app is used daily at a company and i'm sure they wouldn't like me screwing it up :)  I'm at a loss, Any help is appreciated. </p>
  
  <p>**</p>
  
  <ul>
  <li>Edit</li>
  </ul>
  
  <p>**
  So i realized that there is a staging server set up on the same droplet as well and the code to deploy to each is nearly identical. I had no problems updating the staging server</p>
  
  <p>Here is the error code:</p>
  
  <pre><code>refreshing local cache to revision 4ea064e4826a9880c6bac3e0a2689b688e223911 at /var/folders/qb/6fdgzljs1r9ddgkvqk1ky0y40000gn/T/mpm
          executing locally: cd /var/folders/qb/6fdgzljs1r9ddgkvqk1ky0y40000gn/T/mpm &amp;&amp; git fetch -q origin &amp;&amp; git fetch --tags -q origin &amp;&amp; git reset -q --hard 4ea064e4826a9880c6bac3e0a2689b688e223911 &amp;&amp; git clean -q -d -x -f
      fatal: Not a git repository (or any of the parent directories): .git
          command finished in 9ms
      shell command failed with return code pid 97172 exit 128
  </code></pre>