docs: Improve .gitignore fix instructions in Pitfall #72

Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-05 07:49:22 +00:00
parent 6ee29279b7
commit 863f10dc77

View File

@@ -5799,10 +5799,10 @@ trade.realizedPnL += actualRealizedPnL // NOT: result.realizedPnL from SDK
* `.env.telegram-bot` - Removed from git tracking (contains bot token)
- **Fix Process (Dec 5, 2025):**
```bash
# 1. Update .gitignore first
echo ".env" >> .gitignore
echo ".env.local" >> .gitignore
echo ".env.*.local" >> .gitignore
# 1. Update .gitignore first (add these lines if not present)
# .env
# .env.local
# .env.*.local
# 2. Remove from git tracking (keeps local file)
git rm --cached .env