> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docwriter.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Git workflow

> Use git for version control and automatic commits.

<Note>
  This page is a stub. [Editing an Overleaf LaTeX
  project](/guides/overleaf) covers the auto-commit-and-push hook in
  context. A standalone treatment is coming soon.
</Note>

Topics to cover:

* Initializing a git repo in your workspace
* The `Git: auto-commit & push on Stop` template hook
* Reviewing what gets committed (`document.md` is committed; the
  `.docwriter/` directory is typically gitignored)
* Branching strategies for agent work
* Reverting an agent change after acceptance via `git revert`
