---
description: Backup main branch then push PeakPulse repo to origin
---

1. Check for uncommitted changes
// turbo
```bash
cd /Users/sd9235/code/mygh/learning_ai_peakpulse && git status --short
```

2. If there are changes, commit them with an appropriate message
```bash
cd /Users/sd9235/code/mygh/learning_ai_peakpulse && git add -A && git commit -m "chore: save work in progress"
```

3. Create a timestamped backup branch
// turbo
```bash
cd /Users/sd9235/code/mygh/learning_ai_peakpulse && git branch backup/main-$(date +%Y%m%d-%H%M%S)
```

4. Push main to origin
```bash
cd /Users/sd9235/code/mygh/learning_ai_peakpulse && git push origin main
```

5. Verify push succeeded
// turbo
```bash
cd /Users/sd9235/code/mygh/learning_ai_peakpulse && git log --oneline -3
```
