I ran the following commands
git lfs migrate import --everything --include="*.pdf"
git reflog expire --expire-unreachable=now --all
git gc --prune=now
git push origin master
The I end up with local files with 1 kB only. I learned that I need an additional
git lfs checkout
to get "the real files back" and I just wonder, whether there is some command to hide the huge files again, that is some "undo git lfs checkout
"?
Concerning git lfs prune
: This does not change anything:
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
Original files are present, then
$ git lfs prune
* 36 local objects, 29 retained
Pruning 7 files, (935 KB)
* Deleted 7 files
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
Files still present...