Team
Set up team mode
Let teammates read the sessions behind each other's commits, through the git remote you already push to.
Share a session sends one file by hand. Team mode does it with every push: each commit’s record and guide, and the sessions behind it, go to your own git remote as hidden refs. A teammate fetches them and reads your commit the way you do. Nothing goes to Wisdom.
It’s opt-in. A repository is in team mode while it has a committed wisdom-team.yaml;
without one, Wisdom changes no commit message and pushes nothing.
Set it up
Section titled “Set it up”-
Turn it on
Section titled “Turn it on”One person adds the file and pushes it:
Terminal wisdom team initgit add wisdom-team.yamlgit commit -m "Turn on Wisdom team mode"git pushteam initalso offers to write the CI files and the team dashboard, and does neither unless you say yes. -
Connect each clone
Section titled “Connect each clone”Everyone, you included, pulls the file and runs
connectagain (wisdom initin a tracked project):Terminal git pullwisdom connectNow that the file is there, this also installs four git hooks:
Output Team mode: Wisdom's git hooks are in /home/maya/invoice-api/.git/hooks. Turn them off with: wisdom team hooks offA hook of your own still runs first. If the repository tracks its hooks folder (Husky’s
.husky/), Wisdom doesn’t write there and prints the lines to add instead.It then asks whether
git pullshould bring the team’s commit links and records too (wisdom team sync, explained here). Either answer works:wisdom team fetchalways brings them.If the team file names commands to run on your machine,
connectsays so. Read and allow them withwisdom team trust(see Manage team mode). -
Commit and push as usual
Section titled “Commit and push as usual”Terminal git pushOutput Wisdom: 1 commit record and 1 session version(s) sent to origin. -
Read a teammate’s commit
Section titled “Read a teammate’s commit”Terminal git pullwisdom team fetchwisdom glance --commit a4c91e2Output 1 teammate session updated, 0 removed by the team's deletion list, 3 commit records here.The fetch brings what your own branches reach, so to review a pull request, check out its branch first. Their sessions are read-only copies here. Open the steps a commit names with
wisdom open t2/c1 --capture <session>, as with your own.