title: Git : How to remove only empty directories(not un-tracked files) in a git repo
body: <p>By doing some pull's,push's,rebase's,merge's...some empty directories left in my project.</p>
  
  <p>Later I came to know, <strong>Git doesn't track directories</strong> and there is a command to delete such directories.</p>
  
  <blockquote>
    <p>git clean -fd<br>
    This command will clean up all of the files that are
    not part of your git repository - including the folders.</p>
  </blockquote>
  
  <p>but above command is also deleting all untracked files and directories,this is a big lose to ongoing development projects.</p>
  
  <p>Is there any way to delete only empty folders with out touching un-tracked files.</p>