title: hg addremove in git
body: <p>I really need this command in git</p>
  
  <pre><code>hg addremove
  </code></pre>
  
  <p>So now look at scenario and see how mercurial would save me in here:</p>
  
  <p>I had some kind of dir in here var/htdocs/static/static. I accidentally moved files to wrong location (with git-mv). anyway... now I moved some folders around by hand:</p>
  
  <pre><code>mv static static2
  mv static2/static ./
  </code></pre>
  
  <p>Maybe I've changed some files in here too... and now everything is great... so now git doesn't know what happend? How he could trace a movement of files without notifying it like mercurial does with addremove.</p>
  
  <p>For example now with mercurial I could do:</p>
  
  <pre><code>hg addremove --similarity 80%
  </code></pre>
  
  <p>that's it - mercurial traced where files was moved by recognizing files content, and I saved my files history. </p>
  
  <p>one lad in <a href="http://importantshock.wordpress.com/2008/08/07/git-vs-mercurial/" rel="noreferrer">here</a> have some trick for this:</p>
  
  <pre><code>git add .
  git ls-files --deleted | xargs git rm
  </code></pre>
  
  <p>but it's like in CVS back then. you deleting files, you adding files. what about saving history of files??</p>