busan_data_navigator / commit_for_lfs.sh
atoye1's picture
pushing for deployment
18fb155
#!/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"