-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·66 lines (57 loc) · 2.06 KB
/
setup_github.sh
File metadata and controls
executable file
·66 lines (57 loc) · 2.06 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
#!/bin/bash
# ═══════════════════════════════════════════════════════════════
# GitHub Repository Setup Script
# Agentic AI Learning Roadmap
#
# Run this once from inside your project folder:
# chmod +x setup_github.sh && ./setup_github.sh
# ═══════════════════════════════════════════════════════════════
set -e
REPO_NAME="Agentic-AI-Learning-Roadmap"
echo ""
echo "Setting up GitHub repo: $REPO_NAME"
echo "============================================"
# 1. Check git
if ! command -v git &> /dev/null; then
echo "Installing git..."
brew install git
fi
# 2. Check gh CLI
if ! command -v gh &> /dev/null; then
echo "Installing GitHub CLI..."
brew install gh
echo ""
echo "Login to GitHub now:"
gh auth login
fi
# 3. Configure git identity if not set
if [ -z "$(git config --global user.email)" ]; then
echo "Enter your GitHub email:"
read email
git config --global user.email "$email"
git config --global user.name "$(gh api user --jq .name)"
fi
# 4. Initialise git repo
echo ""
echo "Initialising git repository..."
git init
git add .
git commit -m "Initial commit: Phase 1 complete, Phase 2 in progress
- Ollama + Gemma3:27b running locally on Mac Mini M4
- Python 3.11, VS Code, virtual env configured
- Phase 1 foundation fully verified
- Phase 2 RAG Projects: Project 1 complete
- Full project structure with READMEs for all phases"
# 5. Create GitHub repo and push
echo ""
echo "Creating GitHub repo and pushing..."
gh repo create "$REPO_NAME" \
--public \
--description "From zero AI knowledge to building your own agent framework — Mac Mini M4, Ollama, Gemma3, LangChain, Modal, AWS" \
--push \
--source .
echo ""
echo "============================================"
echo "SUCCESS! Your repo is live at:"
gh repo view --web
echo "============================================"