These contain sensitive passwords and credentials:
config/db.php- Database credentials ❌config/email.php- Gmail SMTP password ❌vendor/folder (if exists) - Composer dependencies ❌uploads/profiles/*- User profile images ❌uploads/shops/*- Shop images ❌.envfiles - Environment variables ❌
Already protected by .gitignore ✅
git add config/config.example.php
git add config/email.example.php
git add config/session_check.php
git add config/security.php
git add config/config_loader.php
git add config/concurrent_users.php
git add config/api_security.php# Index and landing pages
git add index.php about.php contact.php faq.php privacy.php terms.php
# Authentication
git add auth/login_handler.php
git add auth/register_handler.php
# Customer pages
git add customer/dashboard.php
git add customer/orders.php
git add customer/profile.php
git add customer/measurements.php
# Tailor pages
git add tailor/dashboard.php
git add tailor/orders.php
git add tailor/profile.php
# Admin panel
git add admin/git add api/auth/
git add api/check_capacity.php
git add api/get_tailors.php
git add api/measurements/
git add api/orders/
git add api/otp/
git add api/profile/
git add api/submit_contact.php
git add api/tailors/git add assets/css/style.css
git add assets/js/app.js
git add assets/js/csrf-helper.js
git add assets/js/map-integration.js
git add assets/js/order-enhancements.js
git add assets/js/tailor-order-enhancements.js
# Safe images (NOT user uploads)
git add assets/images/logo.png
git add assets/images/2.png
# Do NOT add: assets/images/*.pdf (personal files)git add models/
git add repositories/
git add services/EmailOTPService.php
git add services/OrderService.php
git add services/ProfileService.phpgit add database/migrations/
# Do NOT add: database/backups/ or *.sql filesgit add utils/ImageUpload.phpgit add *.md
git add .htaccess
git add uploads/.htaccess
git add .gitignorecd "c:\xampp\htdocs\smart\smart-tailoring"
# Add all modified files
git add .gitignore
git add assets/css/style.css
git add assets/js/app.js
git add index.php
git add customer/
git add tailor/
git add api/
git add auth/
git add models/
git add repositories/
git add services/
git add utils/
# Add new files
git add admin/
git add config/*.example.php
git add config/session_check.php
git add config/security.php
git add config/api_security.php
git add config/config_loader.php
git add config/concurrent_users.php
git add database/migrations/
git add *.md
git add .htaccess
git add uploads/.htaccessgit statusCheck output carefully - ensure NO passwords are being committed!
git commit -m "feat: Complete mobile responsive design + OTP email authentication
- Added comprehensive mobile CSS (768px, 480px breakpoints)
- Implemented email OTP verification system with PHPMailer
- Enhanced security: email field now read-only in profiles
- Mobile optimization for all pages (dashboard, orders, measurements, profile)
- Added forgot password with OTP functionality
- Fixed navbar alignment and responsiveness
- Applied regex validation across all forms
- Updated order system with new status workflow
- Improved UI/UX for both desktop and mobile"git push origin mainRun this command to see exactly what will be pushed:
git diff --cached --name-onlyIf you see any of these, STOP and remove them:
config/db.phpconfig/email.phpvendor/- Files in
uploads/profiles/oruploads/shops/ .envfiles*.sqlfiles
To unstage a file:
git reset HEAD config/db.php-
First time? Make sure
config/db.phpandconfig/email.phpexist locally but are NOT tracked:git rm --cached config/db.php git rm --cached config/email.php
-
Composer packages: If you install PHPMailer via composer, the
vendor/folder will be created. It's already in .gitignore. -
After cloning on another machine:
- Copy
config/config.example.php→config/db.php(add your DB credentials) - Copy
config/email.example.php→config/email.php(add your Gmail credentials)
- Copy
-
User uploads: Profile and shop images are excluded from git. Backup separately if needed.
If you're confident everything is safe:
cd "c:\xampp\htdocs\smart\smart-tailoring"
git add .
git commit -m "feat: Mobile responsive design + OTP authentication system"
git push origin mainBut ALWAYS run git status first to verify!