You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FilestoreUsage.html 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"
  4. xml:lang="en"
  5. lang="en">
  6. <body>
  7. <wicket:extend>
  8. <div class="container">
  9. <div class="markdown">
  10. <div class="row">
  11. <div class="span10 offset1">
  12. <div class="alert alert-danger">
  13. <h3><center>Using the filestore</center></h3>
  14. <p>
  15. <strong>All clients intending to use the filestore must first install the <a href="https://git-lfs.github.com/">Git-LFS Client</a> and then run <code>git lfs install</code></strong><br/>
  16. <p>
  17. If using password authentication it is recommended that you configure the <a href="https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage">git credential storage</a> to avoid Git-LFS asking for your password on each file<br/>
  18. On Windows for example: <code>git config --global credential.helper wincred</code>
  19. </p>
  20. </p>
  21. </div>
  22. <h3>Clone</h3>
  23. <p>
  24. Just <code>git clone</code> as usual, no further action is required as Gitblit is configured to use the default Git-LFS end point <code>{repository}/info/lfs/objects/</code>.<br/>
  25. <i>If the repository uses a 3rd party Git-LFS server you will need to <a href="https://github.com/github/git-lfs/blob/master/docs/spec.md#the-server">manually configure the correct endpoints</a></i>.
  26. </p>
  27. <h3>Add</h3>
  28. <p>After configuring the file types or paths to be tracked using <code>git lfs track "*.bin"</code> just add files as usual with <code>git add</code> command.<br/>
  29. <i>Tracked files can also be configured manually using the <code>.gitattributes</code> file</i>.</p>
  30. <h3>Remove</h3>
  31. <p>When you remove a Git-LFS tracked file only the pointer file will be removed from your repository.<br/>
  32. <i>All files remain on the server to allow previous versions to be checked out.</i>
  33. </p>
  34. <h3>Learn more...</h3>
  35. <p><a href="https://github.com/github/git-lfs/blob/master/docs/spec.md">See the current Git-LFS specification for further details</a>.</p>
  36. <br />
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </wicket:extend>
  42. </body>
  43. </html>