#!/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"