-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.sh
More file actions
44 lines (34 loc) · 1.23 KB
/
Copy pathsetup-github.sh
File metadata and controls
44 lines (34 loc) · 1.23 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
#!/bin/bash
# GitHub Repository Setup Script
# This script helps you create a GitHub repository and push your code
echo "=== GitHub Repository Setup ==="
echo ""
# Get repository name
read -p "Enter your GitHub repository name (e.g., 'nextnode-learning'): " repoName
# Get GitHub username
read -p "Enter your GitHub username: " username
echo ""
echo "Creating repository on GitHub..."
echo "Please create the repository manually on GitHub.com:"
echo "1. Go to https://github.com/new"
echo "2. Repository name: $repoName"
echo "3. Make it PUBLIC (required for free GitHub Pages)"
echo "4. DO NOT initialize with README, .gitignore, or license"
echo "5. Click 'Create repository'"
echo ""
read -p "Press Enter after you've created the repository on GitHub"
echo ""
echo "Setting up remote and pushing code..."
# Add remote
git remote add origin "https://github.com/$username/$repoName.git"
# Push to main
echo "Pushing to GitHub..."
git push -u origin main
echo ""
echo "=== Next Steps ==="
echo "1. Go to: https://github.com/$username/$repoName/settings/pages"
echo "2. Under 'Source', select 'GitHub Actions'"
echo "3. The deployment will start automatically!"
echo ""
echo "Your site will be available at:"
echo "https://$username.github.io/$repoName/"