# Support LFS in Bitrise

**URL:** <https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339>\
**Category:** Question & Answer\
**Created:** [June 18, 2019, 7:59am UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339 "2019-06-18T07:59:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![springpad](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@springpad](https://discuss.bitrise.io/u/springpad)\
**Post date:** [June 18, 2019, 7:59am UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/1 "2019-06-18T07:59:03Z")

</div>

Hi all,

I have a GitHub project (private repo) that has LFS configured to support a large 3rd party iOS library (~128Mb binary). How can I support LFS on Bitrise, e.g. during a GitHub clone workflow.

The library is needed for the iOS build process to succeed.

Thank you in advance.

Matthew

---

<div class="post-metadata">

**Author:** ![eliot\_pear](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/eliot_pear/32/227_2.png) [@eliot\_pear](https://discuss.bitrise.io/u/eliot_pear)\
**Post date:** [June 18, 2019, 4:12pm UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/2 "2019-06-18T16:12:07Z")

</div>

I think Git LFS is preinstalled: [https://github.com/bitrise-io/bitrise.io/blob/master/system\_reports/osx-vs4mac-stable.log#L26](https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-vs4mac-stable.log#L26)

So I’d just try it and see if it works.

We were able to improve performance of our git LFS pulls (and reduce our LFS data usage) by using the bitrise cache to cache the `.git/lfs` folder so we didn’t have to pull each object down one by one on every build.

---

<div class="post-metadata">

**Author:** ![springpad](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@springpad](https://discuss.bitrise.io/u/springpad)\
**Post date:** [June 18, 2019, 5:43pm UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/3 "2019-06-18T17:43:58Z")

</div>

Thanks Eliot.

I see the following errors in Bitrise:-

error: failed to fetch some objects from [https://github.com/$user$/$repo$.git/info/lfs](https://github.com/%24user%24/%24repo%24.git/info/lfs)’  
Object does not exist on the server: [404] Object does not exist on the server  
error: failed to fetch some objects from ‘[https://github.com/$user$/$repo$.git/info/lfs](https://github.com/%24user%24/%24repo%24.git/info/lfs)’

Any idea?

---

<div class="post-metadata">

**Author:** ![springpad](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@springpad](https://discuss.bitrise.io/u/springpad)\
**Post date:** [June 18, 2019, 6:28pm UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/4 "2019-06-18T18:28:38Z")

</div>

±-----------------------------------------------------------------------------+

| (4) lfs pull |  
±-----------------------------------------------------------------------------+  
| id: script |  
| version: 1.1.5 |  
| collection: [https://github.com/bitrise-io/bitrise-steplib.git](https://github.com/bitrise-io/bitrise-steplib.git) |  
| toolkit: bash |  
| time: 2019-06-18T18:13:27Z |  
±-----------------------------------------------------------------------------+  
| |

- git lfs pull  
[13e5e9ac4f012d612ade7c98d5f48bf0b6999690b7a7095ebe44de0c24cf1bc1] Object does not exist on the server: [404] Object does not exist on the server  
error: failed to fetch some objects from ‘[https://github.com/SharekApp/springpad-rna.git/info/lfs](https://github.com/SharekApp/springpad-rna.git/info/lfs)’  
| |  
±–±--------------------------------------------------------------±---------+  
| x | lfs pull (exit code: 2) | 4.36 sec |  
±–±--------------------------------------------------------------±---------+  
| Issue tracker: [https://github.com/bitrise-io/steps-script/issues](https://github.com/bitrise-io/steps-script/issues) |  
| Source: [https://github.com/bitrise-io/steps-script](https://github.com/bitrise-io/steps-script) |  
±–±--------------------------------------------------------------±---------+

---

<div class="post-metadata">

**Author:** ![springpad](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@springpad](https://discuss.bitrise.io/u/springpad)\
**Post date:** [June 19, 2019, 6:26am UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/5 "2019-06-19T06:26:22Z")

</div>

I managed to fix the issue. Seems the object had not yet been pushed to the LFS server.

Fixed via  
`➜ git lfs push origin BRANCH --all`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [July 19, 2019, 6:26am UTC](https://discuss.bitrise.io/t/support-lfs-in-bitrise/9339/6 "2019-07-19T06:26:23Z")

</div>

Closed on July 19, 2019, 6:26am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
