-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-github.sh
More file actions
48 lines (43 loc) · 1.24 KB
/
init-github.sh
File metadata and controls
48 lines (43 loc) · 1.24 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
#!/bin/bash
# Initialize Git repository and prepare for GitHub
echo "🚀 Initializing SourceGraph MCP for GitHub..."
echo ""
# Initialize git if not already
if [ ! -d ".git" ]; then
echo "📦 Initializing git repository..."
git init
echo "✅ Git initialized"
else
echo "ℹ️ Git repository already initialized"
fi
# Add all files
echo ""
echo "📝 Adding files to git..."
git add .
# Show status
echo ""
echo "📊 Git status:"
git status
echo ""
echo "✅ Ready for first commit!"
echo ""
echo "Next steps:"
echo ""
echo "1. Create initial commit:"
echo " git commit -m \"Initial commit: SourceGraph MCP server\""
echo ""
echo "2. Create GitHub repository:"
echo " - Go to https://github.com/new"
echo " - Name: sourcegraph-mcp"
echo " - Description: Model Context Protocol server for SourceGraph code search"
echo " - Visibility: Public"
echo " - Do NOT initialize with README (we already have one)"
echo ""
echo "3. Connect to GitHub:"
echo " git remote add origin https://github.com/YOUR_USERNAME/sourcegraph-mcp.git"
echo " git branch -M main"
echo " git push -u origin main"
echo ""
echo "4. Update README.md and pyproject.toml with your GitHub username"
echo ""
echo "🎉 Then share your repository with the world!"