File size: 203 Bytes
991f07c
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
#!/bin/bash

lfs_files=($(git lfs ls-files -n))
for file in "${lfs_files[@]}"; do        
    git cat-file -e "HEAD:${file}" && git cat-file -p "HEAD:${file}" > "$file"
done
    
rm -rf .git/lfs/objects