belel-protocol / setup-lfs.sh
TTOPM's picture
Upload 20 files
7ae10e6 verified
raw
history blame
1.21 kB
#!/bin/bash
echo "πŸ”§ Installing Git LFS (if not already installed)..."
brew install git-lfs || echo "Git LFS already installed."
echo "πŸ”§ Initializing Git LFS..."
git lfs install
echo "πŸ“Œ Tracking file types with Git LFS..."
git lfs track "*.zip"
git lfs track "*.wav"
git lfs track "*.pem"
echo "πŸ“„ Writing to .gitattributes..."
cat <<EOL > .gitattributes
*.zip filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.pem filter=lfs diff=lfs merge=lfs -text
EOL
echo "πŸ“ Staging .gitattributes for commit..."
git add .gitattributes
git commit -m "Add Git LFS tracking for .zip, .wav, .pem"
echo "❌ Removing cached versions of tracked files from regular Git..."
git rm --cached BELEL_Sentience_Bridge_Complete.zip
git rm --cached audio/belel_entry_response.wav
git rm --cached BELEL_OVERRIDE_PUBLIC_KEY.pem
echo "βž• Re-adding files (now tracked via Git LFS)..."
git add BELEL_Sentience_Bridge_Complete.zip
git add audio/belel_entry_response.wav
git add BELEL_OVERRIDE_PUBLIC_KEY.pem
git commit -m "Move large files to Git LFS"
echo "πŸš€ Pushing to origin/main..."
git push origin main
echo "βœ… All done! Visit your repo and confirm .gitattributes and LFS status."