File size: 1,202 Bytes
767597b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash

echo "πŸš€ OpenClaw Hugging Face Spaces Setup"
echo "====================================="
echo ""

# Check if git is initialized
if [ ! -d ".git" ]; then
    echo "πŸ“¦ Initializing git repository..."
    git init
else
    echo "βœ… Git already initialized"
fi

# Set git config
git config user.email "atum246@users.noreply.github.com"
git config user.name "Atum246"

# Check if remote is set
if git remote get-url origin > /dev/null 2>&1; then
    echo "βœ… Git remote already set to: $(git remote get-url origin)"
else
    echo "⚠️  No git remote set. Adding..."
    git remote add origin https://github.com/Atum246/openclaw-huggingface.git
fi

# Add all files
echo ""
echo "πŸ“ Adding files to git..."
git add .

# Commit
echo ""
echo "πŸ’Ύ Committing changes..."
git commit -m "Initial OpenClaw Hugging Face Spaces setup with auto-backup"

echo ""
echo "βœ… Ready to push!"
echo ""
echo "πŸ“Œ Next steps:"
echo "   1. GitHub repo: https://github.com/Atum246/openclaw-huggingface (will be auto-created)"
echo "   2. Push: git push -u origin main"
echo "   3. Go to Hugging Face and duplicate this Space"
echo ""
echo "πŸ“– See README.md for Hugging Face deployment instructions!"