title: How can I repair a git repository with a missing object?
body: <p>My development repository at some point lost an object.</p>
  
  <pre><code>$ git fsck
  fatal: failed to read object 2dddc84156fa30e4614a7ea5a1895885011b8db8: Invalid argument
  $ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8
  error: unable to find 2dddc84156fa30e4614a7ea5a1895885011b8db8
  fatal: git cat-file 2dddc84156fa30e4614a7ea5a1895885011b8db8: bad file
  </code></pre>
  
  <p>A freshly cloned repository has that object.</p>
  
  <pre><code>$ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8
  tree
  </code></pre>
  
  <p>I would like to keep my development repository, it has unpushed branches and stashes.</p>
  
  <p>How can I patch that object into my broken repository?</p>