This project was generated with Angular CLI version 16.2.12.
📍 Run all commands inside your Angular project folder
🔹 STEP 1: Initialize Git (only once)
git init
🔹 STEP 2: Check status
git status
🔹 STEP 3: Create .gitignore (important for Angular)
notepad .gitignore
node_modules/ dist/ .env
Save & close.
🔹 STEP 4: Create README (this is the “POST” details)
notepad README.md
# PracticeAngular
Angular practice project pushed from VS Code using Git commands.
## Setup
npm install
ng serve
## Author
Reena Praveena PampanaSave & close.
🔹 STEP 5: Add all files
git add .
🔹 STEP 6: Commit files
git commit -m "Initial Angular project with README"
🔹 STEP 7: Add GitHub repository (replace USERNAME)
git remote add origin https://github.com/USERNAME/PracticeAngular.git
If error origin already exists:
git remote remove origin
git remote add origin https://github.com/USERNAME/PracticeAngular.git
🔹 STEP 8: Rename branch to main
git branch -M main
🔹 STEP 9: Push to GitHub 🚀
git push -u origin main
👉 Browser may open → Sign in to GitHub.
🎉 DONE — Your Angular project is POSTED on GitHub
🔁 For future updates (POST again)
git add .
git commit -m "Updated project details"
git push