Skip to content

Latest commit

 

History

History
113 lines (68 loc) · 2.29 KB

File metadata and controls

113 lines (68 loc) · 2.29 KB

Absolutely! Here is a complete step-by-step guide to push your full project (including the README.md) to the GitHub repository:


✅ Full GitHub Push Guide:

For this repo:

https://github.com/khatriharsh08/Local-Waste-Management-Recycling-Information-System-LWM-RIS-.git


🧱 1. Clone the GitHub Repository (if not already)

git clone https://github.com/khatriharsh08/Local-Waste-Management-Recycling-Information-System-LWM-RIS-.git
cd Local-Waste-Management-Recycling-Information-System-LWM-RIS-

Or skip to step 2 if your local project is already initialized and you're just linking it to the remote repo.


🆕 2. Initialize Git (for a fresh local folder)

Only if you're starting from scratch:

git init

📦 3. Add Project Files (if they’re not in the folder yet)

Place your project files into this directory (HTML, PHP, CSS, JS, database files, etc.)


📄 4. Create a README.md

Create a README.md with the documentation (you can use the content I provided earlier).

nano README.md
# Paste content, then save with CTRL + O, then press ENTER, then CTRL + X to exit

🗃️ 5. Stage All Files

git add .

✅ 6. Commit Your Changes

git commit -m "Initial commit with full project files and README.md"

🔗 7. Link to GitHub Remote Repo

Only do this if remote is not set yet:

git remote add origin https://github.com/khatriharsh08/Local-Waste-Management-Recycling-Information-System-LWM-RIS-.git

Verify it:

git remote -v

🚀 8. Push Your Code to GitHub

git push -u origin main

If your local branch is named master instead of main, use:

git push -u origin master

🔐 9. Authentication Prompt

If GitHub asks for login:

  • Use your GitHub username
  • And instead of password, paste your Personal Access Token (PAT)

🔧 Generate PAT here: https://github.com/settings/tokens Be sure to give it repo scope.


🎉 Done!

You can now go to your repository on GitHub and confirm all files (including README.md) are there: 👉 View Repository