# Managing spaces with GitHub actions

**URL:** <https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338>\
**Category:** Beginners\
**Created:** [February 8, 2023, 6:01pm UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338 "2023-02-08T18:01:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushmanth](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sushmanth](https://discuss.huggingface.co/u/sushmanth)\
**Post date:** [February 8, 2023, 6:01pm UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338/1 "2023-02-08T18:01:56Z")

</div>

```auto
Git LFS upload failed:
7
  (missing) onnx_models/membrane_segmentor.onnx (f6db9b34b3038e13b9f4c98323c81ee44986d2fa0d7744988fb65c0dc8a99a8c)
8
hint: Your push was rejected due to missing or corrupt local objects.
9
hint: You can disable this check with: `git config lfs.allowincompletepush true`
10
error: failed to push some refs to 'https://huggingface.co/spaces/sushmanth/me_seg'

```

this is following error when I try to push my code from GitHub to hugging face through workflow

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [February 9, 2023, 7:43am UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338/2 "2023-02-09T07:43:52Z")

</div>

Cc @nateraw perhaps

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 9, 2023, 4:00pm UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338/3 "2023-02-09T16:00:38Z")

</div>

hi @julien-c this issue was solved via our channel in Discord, @sushmanth please send us your solution here. Thanks

---

<div class="post-metadata">

**Author:** ![sushmanth](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sushmanth](https://discuss.huggingface.co/u/sushmanth)\
**Post date:** [February 9, 2023, 5:39pm UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338/4 "2023-02-09T17:39:26Z")

</div>

@julien-c there is lot of incomplete documentation for [Managing Spaces with Github Actions](https://huggingface.co/docs/hub/spaces-github-actions) this need to be updated, lot of Open-source organization are opting hugging face for deploying there model in hugging face spaces …for example DEVOWORM the organization ,which I was working for has opted to share there model in hugging face…But most of these type of works are done by people ,who are new to open source ,I have created the web app within a day, but creating workflow for that almost took me two weeks…The documentation is incomplete and need to be corrected asap and resources for this are very less on internet ,I have complete done a course on yml and workflow then I have understood ,how everything is working …Pls some one just help me with this documentation work… @radames …the pr which have been implemented is correct but , it throws error due to gitattributes files [commit](https://github.com/huggingface/hub-docs/commit/4260089115ee31f63331dbc4dcd8f6a56da9b56f) and solution for these need to be updated in docs…someone pls help me out…

---

<div class="post-metadata">

**Author:** ![Bachstelze](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@Bachstelze](https://discuss.huggingface.co/u/Bachstelze)\
**Post date:** [January 26, 2026, 7:50pm UTC](https://discuss.huggingface.co/t/managing-spaces-with-github-actions/31338/5 "2026-01-26T19:50:50Z")

</div>

I had to add “git remote set-url space https://\<user\_name\>:\<token\>@huggingface.co/spaces/\<user\_name\>/\<repo\_name\>” to get permission.
