Skip to content

Commit 1b7cea5

Browse files
committed
Add mobile-friendly branch reorganization tools
1 parent 40da03c commit 1b7cea5

File tree

2 files changed

+178
-0
lines changed

2 files changed

+178
-0
lines changed

MOBILE_BRANCH_GUIDE.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Mobile-Friendly Branch Reorganization Guide
2+
3+
## For Android/Mobile Users 📱
4+
5+
Since you're on Android, here are your options:
6+
7+
---
8+
9+
## Option 1: GitHub Mobile Web (Easiest for Mobile) 🌐
10+
11+
1. **Open GitHub in your mobile browser**
12+
- Go to: https://github.com/SL-Mar/quantcoder-cli
13+
- Use **Desktop Site** mode for full features
14+
15+
2. **Create Beta Branch**
16+
- Tap "main" dropdown → Find "refactor/modernize-2025"
17+
- Tap the ⋮ (three dots) next to branch name
18+
- Select "Rename branch"
19+
- Enter new name: `beta`
20+
- Confirm
21+
22+
3. **Create Gamma Branch**
23+
- Tap "main" dropdown → Find "claude/refactor-quantcoder-cli-JwrsM"
24+
- Tap the ⋮ (three dots) next to branch name
25+
- Select "Rename branch"
26+
- Enter new name: `gamma`
27+
- Confirm
28+
29+
4. **Done!**
30+
31+
---
32+
33+
## Option 2: Use Termux (Android Terminal) 📟
34+
35+
If you have Termux installed:
36+
37+
```bash
38+
# Install git
39+
pkg install git
40+
41+
# Clone repo
42+
git clone https://github.com/SL-Mar/quantcoder-cli
43+
cd quantcoder-cli
44+
45+
# Run reorganization script
46+
chmod +x reorganize-branches.sh
47+
./reorganize-branches.sh
48+
```
49+
50+
---
51+
52+
## Option 3: Wait for Computer Access 💻
53+
54+
The reorganization script is ready at:
55+
```
56+
./reorganize-branches.sh
57+
```
58+
59+
When you have computer access:
60+
1. Clone the repository
61+
2. Run the script
62+
3. Done!
63+
64+
---
65+
66+
## Current Status (What You Have Now)
67+
68+
**All code is complete and pushed**
69+
- Autonomous mode: ✓
70+
- Library builder: ✓
71+
- Documentation: ✓
72+
- Version 2.0.0-alpha.1: ✓
73+
74+
**Working locally with clean names**
75+
You can already use:
76+
```bash
77+
git checkout main # v1.0
78+
git checkout beta # v1.1
79+
git checkout gamma # v2.0
80+
```
81+
82+
**Remote branches have technical names**
83+
- `origin/main`
84+
- `origin/refactor/modernize-2025` (should be beta)
85+
- `origin/claude/refactor-quantcoder-cli-JwrsM` (should be gamma)
86+
87+
---
88+
89+
## Why Can't Claude Do This?
90+
91+
Claude's Git access is proxied with strict restrictions:
92+
- Can only push to branches matching: `claude/*-sessionID`
93+
- Cannot rename existing remote branches
94+
- You need full GitHub access (which you have!)
95+
96+
---
97+
98+
## Questions?
99+
100+
**Q: Is my code safe?**
101+
A: Yes! All v2.0 code is pushed to `origin/claude/refactor-quantcoder-cli-JwrsM`
102+
103+
**Q: Can I use it now?**
104+
A: Yes! The branch names are just labels. All functionality works.
105+
106+
**Q: What's the priority?**
107+
A: Low priority. Renaming is cosmetic - the code is complete and working.
108+
109+
---
110+
111+
**Created:** 2025-12-15
112+
**Repository:** https://github.com/SL-Mar/quantcoder-cli

reorganize-branches.sh

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
# QuantCoder Branch Reorganization Script
3+
# This script creates clean branch names: main, beta, gamma
4+
5+
set -e
6+
7+
echo "🔄 QuantCoder Branch Reorganization"
8+
echo "===================================="
9+
echo ""
10+
11+
# Check if we're in the right repo
12+
if [ ! -d ".git" ]; then
13+
echo "❌ Error: Not in a git repository"
14+
exit 1
15+
fi
16+
17+
echo "📍 Current branches:"
18+
git branch -r
19+
echo ""
20+
21+
# Ask for confirmation
22+
read -p "This will create new branches (main, beta, gamma). Continue? (y/n) " -n 1 -r
23+
echo ""
24+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
25+
echo "Cancelled."
26+
exit 0
27+
fi
28+
29+
echo ""
30+
echo "Step 1: Fetch all branches..."
31+
git fetch --all
32+
33+
echo ""
34+
echo "Step 2: Create beta branch from refactor/modernize-2025..."
35+
git checkout refactor/modernize-2025 2>/dev/null || git checkout -b beta origin/refactor/modernize-2025
36+
git checkout -b beta-clean
37+
git push origin beta-clean:beta
38+
echo "✓ Beta branch created"
39+
40+
echo ""
41+
echo "Step 3: Create gamma branch from current work..."
42+
git checkout claude/refactor-quantcoder-cli-JwrsM 2>/dev/null || git checkout -b gamma origin/claude/refactor-quantcoder-cli-JwrsM
43+
git checkout -b gamma-clean
44+
git push origin gamma-clean:gamma
45+
echo "✓ Gamma branch created"
46+
47+
echo ""
48+
echo "Step 4: Verify main branch exists..."
49+
git checkout main
50+
echo "✓ Main branch ready"
51+
52+
echo ""
53+
echo "✅ Branch reorganization complete!"
54+
echo ""
55+
echo "New branches:"
56+
echo " • main (v1.0.0) - Stable"
57+
echo " • beta (v1.1.0-beta.1) - Testing"
58+
echo " • gamma (v2.0.0-alpha.1) - Latest"
59+
echo ""
60+
echo "Next steps:"
61+
echo "1. Verify the new branches on GitHub"
62+
echo "2. Update your local git config if needed"
63+
echo "3. Optionally delete old branches:"
64+
echo " git push origin --delete claude/refactor-quantcoder-cli-JwrsM"
65+
echo " git push origin --delete refactor/modernize-2025"
66+
echo ""

0 commit comments

Comments
 (0)