import{_ as a,o as i,c as e,ae as t}from"./chunks/framework.B1nRs-GM.js";const k=JSON.parse('{"title":"Памятка","description":"Короткий набор команд для регулярного обновления приложения от шаблона.","frontmatter":{"title":"Памятка","description":"Короткий набор команд для регулярного обновления приложения от шаблона."},"headers":[],"relativePath":"reference/cheatsheet.md","filePath":"reference/cheatsheet.md"}'),n={name:"reference/cheatsheet.md"};function l(h,s,p,d,c,o){return i(),e("div",null,[...s[0]||(s[0]=[t(`
Рабочая схема:
templates/master -> template -> sync/* -> masterВ репозитории приложения:
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 commitgit push -u origin sync/update-template-vXСоздать PR/MR:
source: sync/update-template-vX
target: masterВажно:
squash = offgit --no-pager log --oneline --graph --decorate --all --max-count=30template из templates/master.sync/* от origin/master.origin/template в sync/*.sync/*.sync/* -> master.