chore(docs): GitHub URLs in README/docs, remove .cursor from repo
Replace git.kalinamall.ru links with github.com/PTah in public docs. Add Rewrite-GitHostUrls.ps1 and Push-Mirror.ps1 for kalinamall mirror pushes. Add .cursor/ to .gitignore. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
|
||||
## 1. Расположение репозиториев (пример)
|
||||
|
||||
| Имя в workspace | Путь (пример Windows) | Remote |
|
||||
|-----------------|----------------------|--------|
|
||||
| `ssh-monitor` | `D:\Soft\Git\ssh-monitor` | git.kalinamall.ru |
|
||||
| `rdp-monitor` | `D:\Soft\Git\RDP-login-monitor` | git.kalinamall.ru |
|
||||
| `security-alert-center` | `D:\Soft\Git\security-alert-center` | git.kalinamall.ru |
|
||||
| Имя в workspace | Путь (пример Windows) | Публичный remote |
|
||||
|-----------------|----------------------|------------------|
|
||||
| `ssh-monitor` | `D:\Soft\Git\ssh-monitor` | github.com/PTah/ssh-monitor |
|
||||
| `rdp-monitor` | `D:\Soft\Git\RDP-login-monitor` | github.com/PTah/RDP-login-monitor |
|
||||
| `security-alert-center` | `D:\Soft\Git\security-alert-center` | github.com/PTah/security-alert-center |
|
||||
|
||||
Пути подставьте свои.
|
||||
Пути подставьте свои. Закрытый инстанс **git.kalinamall.ru** — зеркало с теми же репозиториями; ссылки в документации на каждом хосте должны вести **на этот же хост** (см. ниже).
|
||||
|
||||
---
|
||||
|
||||
@@ -23,18 +23,9 @@
|
||||
```json
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "D:/Soft/Git/ssh-monitor",
|
||||
"name": "ssh-monitor"
|
||||
},
|
||||
{
|
||||
"path": "D:/Soft/Git/RDP-login-monitor",
|
||||
"name": "rdp-monitor"
|
||||
},
|
||||
{
|
||||
"path": "D:/Soft/Git/security-alert-center",
|
||||
"name": "security-alert-center"
|
||||
}
|
||||
{ "path": "D:/Soft/Git/ssh-monitor", "name": "ssh-monitor" },
|
||||
{ "path": "D:/Soft/Git/RDP-login-monitor", "name": "rdp-monitor" },
|
||||
{ "path": "D:/Soft/Git/security-alert-center", "name": "security-alert-center" }
|
||||
],
|
||||
"settings": {
|
||||
"files.eol": "\n"
|
||||
@@ -58,50 +49,42 @@
|
||||
|
||||
## 4. Соглашения
|
||||
|
||||
- Контракт событий: `security-alert-center/docs/event-schema-v1.json` — **единственный источник истины**.
|
||||
- Контракт событий: `security-alert-center/schemas/event-schema-v1.json` — **единственный источник истины**.
|
||||
- Изменение схемы → обновить ТЗ + версию `schema_version` + оба агента.
|
||||
- Коммиты в три репо **раздельные**; связь через теги/версии в README (см. [roadmap.md](roadmap.md)).
|
||||
|
||||
### 4.1. Git: только git.kalinamall.ru
|
||||
### 4.1. Git: зеркала и ссылки в документации
|
||||
|
||||
**Единственный рабочий remote для commit/push — `kalinamall` (git.kalinamall.ru).**
|
||||
GitHub (`origin`) в этом workspace **не используем**: не push, не pull, не PR.
|
||||
В **main** ссылки между репозиториями указывают на **GitHub** (`https://github.com/PTah/...`).
|
||||
|
||||
После каждой завершённой фичи (или логического блока работы):
|
||||
Перед push на другой хост (kalinamall, papatramp) используйте скрипт зеркалирования — он подменяет URL в docs, пушит и **не оставляет** чужие ссылки в локальной ветке:
|
||||
|
||||
```powershell
|
||||
# security-alert-center (аналогичные скрипты — в соседних репо при необходимости)
|
||||
.\scripts\Rewrite-GitHostUrls.ps1 kalinamall # только проверка diff
|
||||
.\scripts\Push-Mirror.ps1 kalinamall # commit → push kalinamall → reset main
|
||||
.\scripts\Push-Mirror.ps1 github # push на GitHub после обычного commit
|
||||
```
|
||||
|
||||
Обычный цикл разработки:
|
||||
|
||||
```bash
|
||||
git add …
|
||||
git commit -m "…"
|
||||
git fetch kalinamall
|
||||
git push kalinamall main
|
||||
git push github main
|
||||
# при необходимости синхронизировать kalinamall:
|
||||
# PowerShell: .\scripts\Push-Mirror.ps1 kalinamall
|
||||
```
|
||||
|
||||
Upstream ветки `main`:
|
||||
|
||||
```bash
|
||||
git config branch.main.remote kalinamall
|
||||
git config branch.main.merge refs/heads/main
|
||||
git config remote.pushDefault kalinamall
|
||||
```
|
||||
|
||||
Если `git push --force-with-lease` пишет `stale info` — сначала `git fetch kalinamall`, затем push снова.
|
||||
|
||||
---
|
||||
|
||||
## 5. Remote kalinamall (первичная настройка)
|
||||
|
||||
```bash
|
||||
git remote add kalinamall https://git.kalinamall.ru/PapaTramp/<repo>.git
|
||||
git push -u kalinamall main
|
||||
```
|
||||
|
||||
Репозитории:
|
||||
## 5. URL репозиториев (GitHub)
|
||||
|
||||
| Проект | URL |
|
||||
|--------|-----|
|
||||
| security-alert-center | `https://git.kalinamall.ru/PapaTramp/security-alert-center.git` |
|
||||
| ssh-monitor | `https://git.kalinamall.ru/PapaTramp/ssh-monitor.git` |
|
||||
| RDP-login-monitor | `https://git.kalinamall.ru/PapaTramp/RDP-login-monitor.git` |
|
||||
| security-alert-center | `https://github.com/PTah/security-alert-center.git` |
|
||||
| ssh-monitor | `https://github.com/PTah/ssh-monitor.git` |
|
||||
| RDP-login-monitor | `https://github.com/PTah/RDP-login-monitor.git` |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user