-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_to_github.sh
More file actions
executable file
·78 lines (77 loc) · 4.69 KB
/
push_to_github.sh
File metadata and controls
executable file
·78 lines (77 loc) · 4.69 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
echo "╔════════════════════════════════════════════════════════════════════════════╗"
echo "║ PUSH ADAS PROJECT TO GITHUB ║"
echo "╚════════════════════════════════════════════════════════════════════════════╝"
echo ""
echo "Repository: https://github.com/Sherin-SEF-AI/Phase1-Autonomy-Perception.git"
echo ""
echo "✅ Git repository initialized"
echo "✅ All files committed (38 files, 15,667+ lines)"
echo "✅ .claude directory excluded from push"
echo "✅ Remote origin configured"
echo ""
echo "═══════════════════════════════════════════════════════════════════════════"
echo "AUTHENTICATION REQUIRED"
echo "═══════════════════════════════════════════════════════════════════════════"
echo ""
echo "You have 3 OPTIONS to authenticate and push:"
echo ""
echo "───────────────────────────────────────────────────────────────────────────"
echo "OPTION 1: Using Personal Access Token (RECOMMENDED)"
echo "───────────────────────────────────────────────────────────────────────────"
echo ""
echo "1. Go to: https://github.com/settings/tokens"
echo "2. Click 'Generate new token (classic)'"
echo "3. Select scopes: 'repo' (full control of private repositories)"
echo "4. Copy the token"
echo "5. Run this command:"
echo ""
echo " git push -u origin main"
echo ""
echo "6. When prompted:"
echo " Username: Sherin-SEF-AI"
echo " Password: [paste your token here]"
echo ""
echo "───────────────────────────────────────────────────────────────────────────"
echo "OPTION 2: Using SSH (if you have SSH key set up)"
echo "───────────────────────────────────────────────────────────────────────────"
echo ""
echo "1. Change remote to SSH:"
echo " git remote set-url origin git@github.com:Sherin-SEF-AI/Phase1-Autonomy-Perception.git"
echo ""
echo "2. Push:"
echo " git push -u origin main"
echo ""
echo "───────────────────────────────────────────────────────────────────────────"
echo "OPTION 3: Using GitHub CLI (if installed)"
echo "───────────────────────────────────────────────────────────────────────────"
echo ""
echo "1. Login:"
echo " gh auth login"
echo ""
echo "2. Push:"
echo " git push -u origin main"
echo ""
echo "═══════════════════════════════════════════════════════════════════════════"
echo ""
echo "AFTER SUCCESSFUL PUSH, your repository will contain:"
echo ""
echo "✅ 38 files"
echo "✅ 4 Python applications (all features, custom, fast, standard)"
echo "✅ 8 feature modules"
echo "✅ 13 documentation files"
echo "✅ Examples and test files"
echo "✅ Requirements files"
echo ""
echo "❌ .claude directory EXCLUDED (as requested)"
echo "❌ venv/ directory EXCLUDED"
echo "❌ __pycache__/ EXCLUDED"
echo "❌ *.pyc files EXCLUDED"
echo ""
echo "═══════════════════════════════════════════════════════════════════════════"
echo ""
read -p "Press ENTER to attempt push with Option 1 (Personal Access Token)..."
echo ""
echo "Running: git push -u origin main"
echo ""
git push -u origin main