Instance: programming.dev
Joined: 2 years ago
Posts: 71
Comments: 2
Mastodon: @canpolat@hachyderm.io
Posts and Comments by canpolat, canpolat@programming.dev
Comments by canpolat, canpolat@programming.dev
I would stay away from YAML (almost at all costs).
For us to be able to help you, I think you need to give us some more details about the organization of your work. If each chapter is a separate text file, then you don't really need to do any branching at all (assuming people will only make changes on their own files and not touch others' work). If it is a single text file, branching (or anything else, to be honest) will not help much.
I assume chapters will have their separate files. As long as you can control who touches which file, everybody can work on the same branch (also referred to as "trunk based"). But if you fear that people may interfere with each other's work (willingly or by accident), then it makes sense to create a branch per chapter to keep contributors at a distance from each other. But working on a single repository requires some sort of an agreement on the workflow.

How to Save Multiple Drafts in Git: A Guide to Using Stash (freecodecamp.org)
difi: Git diff TUI (github.com)
Git Rev News Edition 131 (January 31st, 2026) (git.github.io)
I made my own git (tonystr.net)
Git Rev News Edition 130 (December 31st, 2025) (git.github.io)
Archiving git branches as tags (etc.octavore.com)
Git & GitHub Crash Course for Beginners (freecodecamp.org)
Gitmal: A static page generator for repos (github.com)
Git Rev News Edition 129 (November 30th, 2025) (git.github.io)
Gitlogue: A cinematic Git commit replay tool for the terminal (github.com)
Grebedoc: static site hosting for git forges (grebedoc.dev)
Serie: A rich git commit graph in your terminal (github.com)
Git Rev News Edition 128 (October 31st, 2025) (git.github.io)
Gibr: A Git CLI tool for intelligently creating branch names (github.com)
Git considers SHA-256, Rust, LLMs, and more (lwn.net)
Tangled: tightly-knit social coding (tangled.org)
Git Rev News Edition 127 (September 30th, 2025) (git.github.io)
Radicle: peer-to-peer collaboration with Git (lwn.net)
Worktree Manager: A simple way to work with worktrees (github.com)
What’s next for Git? 20 years in, the community is still pushing forward (github.blog)