# Git 히스토리에서 Hugging Face 토큰 제거 스크립트 $token = "YOUR_HUGGINGFACE_TOKEN_HERE" $files = @( "EXAONE_추가_안내.md", "add_exaone_with_token.py", "download_exaone_model.py", "install_exaone_direct.py", "install_exaone_simple.py" ) Write-Host "Git 히스토리에서 토큰 제거 중..." # 각 파일에 대해 filter-branch 실행 foreach ($file in $files) { Write-Host "처리 중: $file" # 파일이 존재하는 커밋만 처리 $commits = git log --all --pretty=format:"%H" -- "$file" 2>$null if ($commits) { # PowerShell을 사용하여 파일 내용 수정 git filter-branch --force --tree-filter @" if [ -f "$file" ]; then sed -i 's/$token/YOUR_HUGGINGFACE_TOKEN_HERE/g' "$file" 2>/dev/null || \ (powershell -Command "(Get-Content '$file') -replace '$token', 'YOUR_HUGGINGFACE_TOKEN_HERE' | Set-Content '$file'") fi "@ --prune-empty --tag-name-filter cat -- --all 2>&1 | Out-Null } } Write-Host "완료!"