-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
61 lines (49 loc) · 1.45 KB
/
Copy pathsetup.sh
File metadata and controls
61 lines (49 loc) · 1.45 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Sorter - Git Setup & Push Script
# Usage: bash setup.sh <github-repo-url>
echo "=========================================="
echo "Sorter - Git Setup & Push"
echo "=========================================="
echo ""
# Check if repo URL provided
if [ -z "$1" ]; then
echo "Usage: bash setup.sh <github-repo-url>"
echo "Example: bash setup.sh https://github.com/your-username/Sorter.git"
exit 1
fi
REPO_URL=$1
echo "Setting up Git repository..."
echo ""
# Configure git
git config user.name "Sorter Developer"
git config user.email "dev@sorter.local"
# Add all files
echo "Adding files..."
git add .
# Create initial commit
echo "Creating initial commit..."
git commit -m "Initial commit: Sorter v1.0.0
- Keyword Sorter: Search files by keyword
- TimeSort: Find files not accessed in X days
- SmartSort: Intelligent file organization
- Modern glossy UI with PyQt6
- Python API and PowerShell CLI
- Web download page for Vercel/Netlify/Surge"
# Add remote
echo "Adding remote repository..."
git remote add origin "$REPO_URL"
# Push to main branch
echo "Pushing to GitHub..."
git branch -M main
git push -u origin main
echo ""
echo "=========================================="
echo "✓ Successfully pushed to GitHub!"
echo "Repository: $REPO_URL"
echo "=========================================="
echo ""
echo "Next steps:"
echo "1. Create a GitHub Release"
echo "2. Upload split files to release"
echo "3. Deploy web page to Vercel/Netlify"
echo ""