0

I am new to git-lfs. I am constantly facing an issue while pushing a .tar file inside a git repository. Following are the steps taken:

git lfs install
git lfs track "*.tar"
git lfs track 20209456-123558.tar
git add .gitattributes
git commit -m "Tracking a large file"
git push origin main

While executing the last command, I am getting error

! [remote rejected] main -> main (n/a (unpacker error)) error: failed to push some refs to 'https:...

Please suggest some alternatives to tackle this consistent issue.

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

1

GitHub blocks files larger than 100 MiB.

ikegami
  • 367,544
  • 15
  • 269
  • 518
0

You should check out the accepted answer on this question:

git: can't push (unpacker error) related to permission issues

It might be related for your issue.

On both local (the local that is having trouble pushing) and remote repos, run the following commands:

$ git fsck
$ git prune
$ git repack
$ git fsck