title: How to add a single file to GIT LFS?
body: <p>How can I add just a single file to GIT LFS?</p>
  
  <p>Most examples show adding a pattern that specifies which files to add to LFS. However, I wish to add single file. If, for example, I do</p>
  
  <pre><code>git lfs track "file.bin"
  </code></pre>
  
  <p>this will track <em>all</em> files named <code>file.bin</code> regardless of what directory they are in.</p>
  
  <p>I considered adding an exclusion filter (<code>!</code> pattern) to <code>.gitattributes</code> so exclude all directories but that is not supported.</p>
  
  <p>The best I've done so far is to track the file pattern for the file I want to add, add the file and then remove the tracking of that file pattern. This is a little fiddly. Is there a better way?</p>
  
  <p>I want to express the file pattern <code>$ROOT_OF_GIT_REPO/file.bin</code> but am lacking a way to express the <code>$ROOT_OF_GIT_REPO</code> part.</p>