1.1 KiB
1.1 KiB
GitHub Upload Instructions
To upload your website to GitHub:
Option 1: Using GitHub Desktop (Easiest)
- Download and install GitHub Desktop from https://desktop.github.com/
- Sign in to your GitHub account
- Add your local repository (File > Add Local Repository...)
- Navigate to C:\Users\Lenovo\sample-website
- Publish the repository to GitHub
- Select your account and the repository name "website"
- Click "Publish Repository"
Option 2: Using Git with Personal Access Token
- Go to GitHub: https://github.com/settings/tokens
- Generate a new personal access token with 'repo' scope
- Copy the token
- Open a new PowerShell window and run:
cd C:\Users\Lenovo\sample-website
git remote set-url origin https://shaurya05745:YOUR_TOKEN@github.com/shaurya05745/website.git
git push -u origin master
(Replace YOUR_TOKEN with the token you copied)
Option 3: Visual Studio Code
- Open VS Code
- Install the GitHub Pull Requests and Issues extension
- Open your project folder
- Go to Source Control tab
- Sign in to GitHub
- Publish the repository
Choose the method that works best for you!