# Git Workflow & Deployment

## Branch Strategy

```
main (production)
    │
    └── develop (staging/testing)
            │
            └── feature branches
```

## 🌡️ Testing Workflow (MANDATORY)

**Rule: NEVER push directly to main without testing first.**

```
1. WORK on develop branch
2. TEST on staging (Vercel preview)
3. GET approval from Haitham
4. MERGE to main
```

### Steps:
```bash
# 1. Work on develop
git checkout develop
# ... make changes ...

# 2. Push to test
git add -A && git commit -m "Description"
git push origin develop

# 3. Wait for Haitham's approval

# 4. After approval, merge to main
git checkout main
git merge develop
git push origin main
```

### Deployment URLs:
| Branch | URL | Purpose |
|--------|-----|---------|
| **main** | sitmente.com | Live production |
| **develop** | vercel preview | Testing/staging |

## Vercel Auto-Deploy

| Event | Action |
|-------|--------|
| Push to `main` | Auto-deploy to sitmente.com |
| Push to `develop` | Auto-deploy to preview URL |
| Open PR | Create preview deployment |
