agentleFS
gybson63gybson63/1c-oData-skill/.cursor/rules/git-commit-push.mdc

1c-oData-skill / rules

Cursor rule8 starsChanged 5 months agoMITView on GitHub

Когда коммитить и когда пушить после изменений

  • Reads credentials

The file

Files
git-commit-push.mdc
---
description: Когда коммитить и когда пушить после изменений
alwaysApply: true
---

# Git: коммит и push

Следуйте `.cursor/rules/development-workflow.mdc` (ветки, lint, changelog, PR).

После завершения работы с изменениями:

1. **Создавай коммит**, если пользователь просит зафиксировать результат или накопились осмысленные правки.
2. **Много изменений** (несколько файлов, новая фича, рефакторинг, инфраструктура) — **только коммит, без push**, если пользователь явно не попросил push.
3. **Небольшой фикс** (1–2 файла, точечный багфикс, опечатка) — **коммит и push** на feature-ветку, если ветка отслеживает remote и нет причин не пушить.
4. **Push** — только по явной просьбе пользователя или по правилу п.3 для малого фикса.
5. Не пушить force в `main`. Не коммитить секреты (`.env`, `env.json` с ключами). В `main` — только через PR.

Примеры:
- 8 файлов, E2E-инфраструктура → коммит, без push
- Исправление одной строки в `transport.py` → коммит + push на feature-ветку

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.