This document provides instructions for setting up the YouTube Smart Chapters AI project on GitHub.
We've provided a script that will help you initialize the repository and set up the GitHub remote. To use it:
- Open Git Bash or Command Prompt in the project directory
- Make the script executable (if using Git Bash):
chmod +x github-setup.sh
- Run the script:
./github-setup.sh
- Open PowerShell in the project directory
- Run the script with Bash:
bash github-setup.sh
- Open Terminal in the project directory
- Make the script executable:
chmod +x github-setup.sh
- Run the script:
./github-setup.sh
If you prefer to set up GitHub manually, follow these steps:
-
Create a new repository on GitHub:
- Go to https://github.com/new
- Name your repository (e.g., "YouTube-Smart-Chapters-AI")
- Choose public or private visibility
- Do NOT initialize with README, .gitignore, or license files
-
Initialize a git repository in the project directory:
git init
-
Add all files to git:
git add . -
Commit the files:
git commit -m "Initial commit" -
Link to your GitHub repository:
git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPOSITORY-NAME.git
-
Push to GitHub:
git push -u origin main
(If your default branch is "master" instead of "main", use
git push -u origin master)
- You might need to authenticate with GitHub when pushing for the first time.
- If you're having authentication issues, refer to GitHub's documentation on authentication.
- When creating a repository on GitHub, you should NOT initialize it with a README, .gitignore, or license file, as these would conflict with your local files.