3

Scenario 1:

  • Tried to push file size > 100MB in github
  • File > 100MB not allowed to push.Valid error. Agreed
  • ok,use git lfs
  • Still same error
  • whats wrong here
  • Below pics related to Scenario 1

Scenario 2:

  • Cloned a new repo
  • Created a new file > 100 MB
  • Not yet pushed. I know it will be a problem
  • do the git lfs install&track of big file and do git add&commit
  • now if i git push, success, all ok . No issues. I can see the big file in github
  • check it in https://github.com/sivakumar-j-secondary-ac/scenario-2

so What's wrong in the "Scenario 1", if git lfs is working in scenario-2

enter image description here

enter image description here

enter image description here

enter image description here

3
  • Is a limit of Github. See it post stackoverflow.com/a/59479166/8019211 Commented Jun 30, 2020 at 2:40
  • yes its a github limit. But we can overcome that with git lfs.. i am facing error when i use git lfs .. thats the reason of this question.. Note: I am able to use git lfs without issues.. see scenario 2 above Commented Jun 30, 2020 at 3:22
  • I have uploaded file > 100 mb in github.com/sivakumar-j-secondary-ac/scenario-2.. but before i pushed for first time.. i used git lfs... scenario -2 Commented Jun 30, 2020 at 4:11

1 Answer 1

5

You will have to explicitly migrate them into Git LFS with

git lfs migrate import --include="path_to_file

instead of just tracking. Tracking does not work when files exist in the repository.

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.