Cloning and working with repositories that contain LFS managed files works just fine, but pushing them fails. When you try to push, you get the following error.
codespace:~/workspace/lfs-codespace-test$ git push ERROR: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'https://github.com/duncan/lfs-codespace-test'
Seemingly, the git credential mechanism isn’t working with LFS.
You can repo this by:
- Fork https://github.com/duncan/lfs-codespace-test
- Start it up in a codespace
- Do the
git lfs install; git lfs pull; git lfs checkoutdance to pull in the binary files.
- Make a change, any change, and commit it.
- Now try to push.
This is where you should see the fail. Now, you can prove to yourself that it’s lfs related by:
- Uninstalling lfs hooks with
git lfs uninstall
- Now push
That should go in just fine.