| # List of untracked files | |
| untracked_files=$(git status --porcelain | awk '{print $2}' | grep '^python84b/gpt2tok_python_84B_content_document.bin\.') | |
| # Loop through each untracked file | |
| for file in $untracked_files; do | |
| # Track the file using git lfs | |
| git lfs track "$file" | |
| # Add the file | |
| git add "$file" | |
| # Commit the changes | |
| git commit -m "Add $file" | |
| # Push the changes | |
| git push | |
| echo "Pushed $file" | |
| # Sleep for a moment to prevent potential resource exhaustion | |
| sleep 1 | |
| done | |