Daily workflow¶
Once a project is attached to a template, ordinary Git edits and commits remain your daily work. Template changes arrive through a separate rendered ref that you review and merge.
Attach an existing project¶
From the project's Git checkout:
Answer the questions, then resolve any ordinary Git merge conflicts.
init records the attachment in .config/git.tpl.toml and integrates the initial rendering.
See init for preconditions and existing-file behavior.
Review and apply updates¶
update advances refs/tpl/<id> without changing HEAD, the index, or rendered worktree files.
It can save changed answers or composed-child locks in the project configuration, unstaged.
Review that configuration edit alongside the preview.
merge is the separate integration step and honors ordinary Git merge configuration.
For an explicit combined operation, use git tpl pull or git tpl update --merge.
See pull for clean-state requirements and merge controls.
Resolve conflicts¶
Edit conflicted files, stage the resolutions with git add, and finish with git commit.
To abandon an in-progress merge, run:
The completed update remains available on the rendered ref. See merge recovery.
Change answers or templates¶
Edit [answers] in .config/git.tpl.toml, then repeat update, diff, and merge.
For repeatable automation, supply an answer file and --defaults.
To switch sources while retaining the merge base:
See configuration for personal defaults and project settings,
and switch for answer compatibility.
Work with collaborators¶
Ordinary git push and git pull do not transfer refs/tpl/*.
Publish a reviewed rendering explicitly with git tpl push.
Collaborators use git tpl fetch, then inspect the fetched rendering before merging.
After cloning a project, restore its absent local ref before updating it; fetching alone does not adopt that ref. An orphan re-render is not a replacement for the original merge base.
To send a project fix back to its template, use the separate backport workflow.
To stop future updates, see detaching.