From f7a95aabe55318e66f665d0d58dabcc596a78b4b Mon Sep 17 00:00:00 2001 From: anas-rashid Date: Fri, 3 Apr 2026 20:26:14 +0200 Subject: [PATCH] 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 --- README.md | 60 ---------------------------------------- setup_github.sh | 73 ------------------------------------------------- 2 files changed, 133 deletions(-) delete mode 100755 setup_github.sh diff --git a/README.md b/README.md index affa43f..814827d 100644 --- a/README.md +++ b/README.md @@ -119,63 +119,3 @@ If you encounter issues: ![Quadratic Plotter Screenshot](screenshot.png) *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 -``` \ No newline at end of file diff --git a/setup_github.sh b/setup_github.sh deleted file mode 100755 index 7ed8559..0000000 --- a/setup_github.sh +++ /dev/null @@ -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" \ No newline at end of file