Remove unnecessary GitHub setup files and instructions
- Remove setup_github.sh helper script - Remove GitHub repository setup instructions from README - Keep only project-relevant documentation
This commit is contained in:
parent
775ee17a7b
commit
f7a95aabe5
60
README.md
60
README.md
@ -119,63 +119,3 @@ If you encounter issues:
|
||||

|
||||
|
||||
*Note: Add your own screenshot after running the application*
|
||||
|
||||
## GitHub Repository Setup
|
||||
|
||||
This project is already initialized as a Git repository. To push it to a private GitHub repository:
|
||||
|
||||
### Option 1: Using GitHub CLI (Recommended)
|
||||
|
||||
1. Install GitHub CLI if not already installed:
|
||||
```bash
|
||||
# On Ubuntu/Debian
|
||||
sudo apt install gh
|
||||
|
||||
# On macOS
|
||||
brew install gh
|
||||
```
|
||||
|
||||
2. Authenticate with GitHub:
|
||||
```bash
|
||||
gh auth login
|
||||
```
|
||||
|
||||
3. Create a new private repository:
|
||||
```bash
|
||||
gh repo create quadratic-plotter --private --source=. --remote=origin --push
|
||||
```
|
||||
|
||||
### Option 2: Manual Setup
|
||||
|
||||
1. Create a new private repository on [GitHub.com](https://github.com/new):
|
||||
- Repository name: `quadratic-plotter` (or your preferred name)
|
||||
- Select "Private"
|
||||
- Do NOT initialize with README, .gitignore, or license
|
||||
|
||||
2. Add the remote and push:
|
||||
```bash
|
||||
git remote add origin https://github.com/YOUR_USERNAME/quadratic-plotter.git
|
||||
git branch -M main
|
||||
git push -u origin main
|
||||
```
|
||||
|
||||
### Option 3: Using SSH
|
||||
|
||||
If you prefer SSH authentication:
|
||||
|
||||
1. Add your SSH key to GitHub
|
||||
2. Use SSH URL:
|
||||
```bash
|
||||
git remote add origin git@github.com:YOUR_USERNAME/quadratic-plotter.git
|
||||
git branch -M main
|
||||
git push -u origin main
|
||||
```
|
||||
|
||||
### Verification
|
||||
|
||||
After pushing, verify your repository:
|
||||
```bash
|
||||
git log --oneline
|
||||
git remote -v
|
||||
git status
|
||||
```
|
||||
@ -1,73 +0,0 @@
|
||||
#!/bin/bash
|
||||
# GitHub Setup Script for Quadratic Plotter Project
|
||||
# This script helps you push this project to a private GitHub repository
|
||||
|
||||
set -e
|
||||
|
||||
echo "=========================================="
|
||||
echo "GitHub Repository Setup for Quadratic Plotter"
|
||||
echo "=========================================="
|
||||
echo
|
||||
|
||||
# Check if git is installed
|
||||
if ! command -v git &> /dev/null; then
|
||||
echo "❌ Git is not installed. Please install git first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if we're in a git repository
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "❌ Not a git repository. Initializing git..."
|
||||
git init
|
||||
git add .
|
||||
git commit -m "Initial commit: Quadratic Equation Plotter"
|
||||
fi
|
||||
|
||||
echo "✅ Git repository is ready"
|
||||
echo
|
||||
|
||||
# Check for GitHub CLI
|
||||
if command -v gh &> /dev/null; then
|
||||
echo "✅ GitHub CLI (gh) is installed"
|
||||
echo
|
||||
echo "To create a private repository and push:"
|
||||
echo " 1. Authenticate if not already: gh auth login"
|
||||
echo " 2. Run: gh repo create quadratic-plotter --private --source=. --remote=origin --push"
|
||||
echo
|
||||
else
|
||||
echo "ℹ️ GitHub CLI (gh) is not installed"
|
||||
echo
|
||||
echo "Manual setup instructions:"
|
||||
echo " 1. Create a new private repository at https://github.com/new"
|
||||
echo " - Name: quadratic-plotter (or your preferred name)"
|
||||
echo " - Select 'Private'"
|
||||
echo " - DO NOT initialize with README, .gitignore, or license"
|
||||
echo
|
||||
echo " 2. Add remote and push:"
|
||||
echo " git remote add origin https://github.com/YOUR_USERNAME/quadratic-plotter.git"
|
||||
echo " git branch -M main"
|
||||
echo " git push -u origin main"
|
||||
echo
|
||||
echo " 3. For SSH (recommended for frequent pushes):"
|
||||
echo " git remote add origin git@github.com:YOUR_USERNAME/quadratic-plotter.git"
|
||||
echo " git branch -M main"
|
||||
echo " git push -u origin main"
|
||||
fi
|
||||
|
||||
echo "=========================================="
|
||||
echo "Current Git Status:"
|
||||
echo "=========================================="
|
||||
git status
|
||||
echo
|
||||
echo "=========================================="
|
||||
echo "Recent Commits:"
|
||||
echo "=========================================="
|
||||
git log --oneline -5
|
||||
echo
|
||||
echo "=========================================="
|
||||
echo "Remote Repositories:"
|
||||
echo "=========================================="
|
||||
git remote -v
|
||||
echo
|
||||
echo "✅ Setup instructions complete!"
|
||||
echo "👉 Follow the instructions above to push to GitHub"
|
||||
Loading…
Reference in New Issue
Block a user