File size: 534 Bytes
5a18bdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# 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