feat: workspace-bootstrap — init SSH/git/Cursor для Mac и Windows

Единый workspace.local.env для адресов и паролей, init-machine,
Set-GitRemotes, push-safe и check-no-secrets для политики kalinamall/github.
This commit is contained in:
Andrey Lutsenko
2026-06-14 19:34:52 +10:00
parent 8e2a4ac1b9
commit 834595df6b
18 changed files with 813 additions and 8 deletions
+22 -4
View File
@@ -1,4 +1,4 @@
# Политика репозиториев: git.kalinamall.ru и GitHub
# Политика репозиториев: git.kalinamall.ru и GitHub
Для перечисленных проектов действует единая схема: **основное хранилище — корпоративный Gitea**, **GitHub — резервная копия без секретов**.
@@ -37,13 +37,31 @@
## Настройка remotes (один раз на машине)
Только **SSH**, три имени (скрипт `Set-GitRemotes.ps1` из Answer.and.other.shit):
Только **SSH**, три имени скрипт **`scripts/workspace-bootstrap`** (Mac/Linux: `Set-GitRemotes.sh`, Windows: `Set-GitRemotes.ps1`):
```bash
cd ~/Documents/Cursor/Projects/reverse-proxy/scripts/workspace-bootstrap
cp config/workspace.local.env.example config/workspace.local.env
# заполнить workspace.local.env
./init-machine.sh
```
Или для одного репо:
```bash
./scripts/Set-GitRemotes.sh reverse-proxy
```
Windows:
```powershell
cd C:\Users\papat\Projects\reverse-proxy
..\Answer.and.other.shit\scripts\ssh-setup\Set-GitRemotes.ps1 -Repo reverse-proxy
cd C:\Users\papat\Projects\reverse-proxy\scripts\workspace-bootstrap
.\init-machine.ps1
..\scripts\Set-GitRemotes.ps1 -Repo reverse-proxy
```
Старый вариант (Answer.and.other.shit) — переносится в `scripts/workspace-bootstrap`.
Или вручную:
```bash