- добавлены каноны и VitePress-сайт стратегии обновления шаблонов - подключена карточка документации на главной странице - добавлены сборочные скрипты, Caddy-маршрут и Docker-сборка - добавлена git-иконка для карточки и сгенерированы публичные артефакты
1.5 KiB
1.5 KiB
url, description
| url | description |
|---|---|
| /template-sync-strategy/reference/cheatsheet.md | Короткий набор команд для регулярного обновления приложения от шаблона. |
Памятка
Рабочая схема:
templates/master -> template -> sync/* -> master
Обновить template
В репозитории приложения:
git switch template
git pull --ff-only
git push
Это подтягивает свежий шаблон из templates/master и пушит его в origin/template.
Создать ветку обновления
git fetch origin
git switch -c sync/update-template-vX origin/master
git merge origin/template
Если есть конфликты, решить их в этой же ветке:
git add .
git commit
Запушить sync-ветку
git push -u origin sync/update-template-vX
Влить через UI
Создать PR/MR:
source: sync/update-template-vX
target: master
Важно:
squash = off
Проверка
git --no-pager log --oneline --graph --decorate --all --max-count=30
Суть процесса
- Обновить
templateизtemplates/master. - Создать
sync/*отorigin/master. - Влить
origin/templateвsync/*. - Решить конфликты, если есть.
- Запушить
sync/*. - Через UI влить
sync/* -> master.