docs: forbid bare git push; use git-push.sh helpers.

[skip ci]
This commit is contained in:
2026-07-27 23:10:45 +03:00
parent 78d410c3e3
commit b3792a304b
2 changed files with 17 additions and 2 deletions
+3
View File
@@ -27,10 +27,13 @@ alwaysApply: true
| `editor` / not a terminal | Не `git commit` без `-F` в WSL; из Windows: `git commit -F file` |
| Сотни `M` после reset на `/mnt/c` | `git config core.filemode false` (локально); не «чинить» код |
| Удалились `.cursor/`, `.idea/` | **`git clean -fdx` только с backup** env + certs; IDE-директории **не трогать** |
| Push «висит» / ждёт login | **Не** `git push origin` — только `~/.cursor/eventhub/git-push.sh` / `git-push-main.sh` |
| Push заблокирован Auto-review | Push в `master` — только по явной просьбе; `request_smart_mode_approval` |
**`git clean` / reset к origin:** сначала сохранить `docker/.env*`, `.env.development`, `docker/traefik/certs/*`.
**Push:** запрещены голые `git push` / `git push origin …`. Канон — `bash ~/.cursor/eventhub/git-push.sh <repo-dir>` (токен из secrets).
## 3. Docker dev (Swarm локально)
| Ошибка | Правильно |