1

I'm looking to set up a mirror of a non-LFS repo on GitHub that limits me to LFS for larger than 100 MB files. There is no alternative to using GitHub.

My approach:

git clone --bare <REPO>
git lfs migrate import --include="*.zip" --everything
git push <MIRROR> --set-upstream --all

The problem I see is that in case the original repository has new commit and the mirror has the rewritten LFS commit, how will an update take place? I tried various methods but nothing so far made too much sense to me.

Has anyone encountered this and how did you resolve this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Jan
  • 83
  • 8

0 Answers0