docs: Improve .gitignore fix instructions in Pitfall #72
Co-authored-by: mindesbunister <32161838+mindesbunister@users.noreply.github.com>
This commit is contained in:
8
.github/copilot-instructions.md
vendored
8
.github/copilot-instructions.md
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user