Resolve a conflict
A gitq sync that hits a conflict does not fail. It stops, writes down where it stopped, and waits. Here is that loop start to finish: a two branch stack, two separate conflicts, and the output at every step.
Absorb uncommitted changes
You have been editing across a stack and now the working tree holds changes belonging to three different branches. gitq absorb works out which branch owns each dirty file, folds the change into that branch, and restacks everything below it. One command instead of a stash, four checkouts, four amends, and a manual rebase.
Restructure a stack
sync rebases a stack. It never changes its shape. Changing the shape is surgery. Five commands here split a branch in two, merge one into another, move a subtree, rename a node, or snap a branch back to its remote. A sixth surgery command, absorb, has its own guide: Absorb uncommitted changes.
Work in a worktree pool
Some setups do not have one checkout of a repo. They have a parent directory full of them. A primary worktree sits there with a dozen or more siblings, one per branch someone is actively looking at. All of them share the same .git.
Publish a stack
gitq publish turns the local-only branches in a stack into a chain of merge requests, each one targeting the branch below it, and keeps the MRs that already exist pointing at the right branch. Which forge it opens them on comes from the git remote's host, so the same command covers GitLab and GitHub. It is the only gitq command that talks to a network API, the only one that needs a token, and (inside the agent skill flow) the only one with a human gate in front of it.
Drive gitq with agents
gitq is a CLI you can drive by hand, and it is a CLI built to be driven by an agent. Five Claude skills wrap itsync, gitqabsorb, gitqtrack. Each owns exactly one action, and each one splits the work the same way: gitq does the git mechanics, deterministically, and the agent supplies the judgment gitq deliberately does not have an opinion about.
Recover from a mistake
Find the situation you're in and run the command next to it. Each section says what that command undoes and what it leaves alone. In the examples, /Users/you/demo is the repo.