Spaces:
Sleeping
Sleeping
File size: 522 Bytes
18fb155 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/bash
# large_files.txt ํ์ผ์ด ์กด์ฌํ๋์ง ํ์ธ
if [ ! -f large_files.txt ]; then
echo "Error: large_files.txt file not found!"
exit 1
fi
# large_files.txt ํ์ผ์ ๊ฐ ์ค์ ์ฝ์ด์ ์ฒ๋ฆฌ
while IFS= read -r file; do
# ํ์ผ์ด ์กด์ฌํ๋์ง ํ์ธ
if [ -f "$file" ]; then
echo "Processing $file"
git rm --cached "$file"
git add "$file"
else
echo "Warning: $file not found!"
fi
done < large_files.txt
# ๋ณ๊ฒฝ ์ฌํญ ์ปค๋ฐ
git commit -m "Move large files to Git LFS"
|