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"