# Git LFS does not work on public repos

- Link: https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/
- Published: 2020-01-12T22:28:05-08:00
- Author: rich

OK, some really strange things trying to get a public repo working. Many times when
you are trying to recreate a machine learning work is that you need to have the 
data along with the actual code.

It’s unfortunately completely non-standard how this is handled. I had thought that
I could just turn Git LFS on and then the data files could just live there. However,
it turns out this doesn’t work. To prevent abuse, y[ou cannot turn on Git LFS when you fork a repo](https://github.com/git-lfs/git-lfs/issues/1449).

As an aside, to figure this out, you have to [turn on tracing](https://github.com/git-lfs/git-lfs/issues/3613)
and it is clearer what is going on.

    ```wp-block-code
    GIT_TRACE=1 GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 git push 
    ```

So this means that you have to deploy some other tricks to attach data to machine
learning source code. There really should be a better way to do this.

### Share this:

 * [  Mastodon ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?subject=%5BShared%20Post%5D%20Git%20LFS%20does%20not%20work%20on%20public%20repos&body=https%3A%2F%2Ftongfamily.com%2F2020%2F01%2F12%2Fgit-lfs-magic-and-oddities%2F&share=email)
 * [More](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/#)

 * [  Telegram ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=telegram)
 * [  Print ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=tumblr)
 * [  X ](https://tongfamily.com/2020/01/12/git-lfs-magic-and-oddities/?share=twitter)

### Like this:

Like Loading…
