--- name: ade-lanes-git description: Use this skill when creating, inspecting, syncing, committing, pushing, archiving, or rebasing ADE lanes and lane worktrees through `ade lanes` and `ade git`. --- # ADE lanes and git ## Lanes Lanes are ADE-managed git worktrees and branches. New lanes default to remote main (`git.newLaneBaseSource: "remote"`). Pass `--base` or set local mode to override that default. A child lane is based on the parent lane's HEAD, so it carries the parent's commits that have not landed on main yet. | situation | do | |---|---| | continue MY unmerged work in a new lane | `ade lanes child --lane --name ` (carries your commits) | | fresh, unrelated feature | `ade lanes create --name ` (off remote main by default) | | build on ANOTHER lane's unlanded work | `ade lanes child --lane --name ` | ```bash ade lanes list --text ade lanes show --text ade lanes create --name --description "..." --text ade lanes child --lane --name --text ade lanes archive --text ``` `archive` is destructive to a user's workspace: it retires the lane and its worktree, taking any uncommitted work in it with them. Archive a lane only when the user asked for cleanup, or a workflow that owns lane lifecycle requires it. Archived lanes are listed by `ade archive list --kind lane --text`. The user restores or deletes them in Settings → Archive; see the `ade-cli-control-plane` skill for the archive commands. ## ADE-aware Git Use ADE git commands when the operation should update ADE operation state and refresh lane status: ```bash ade git status --lane --text ade git status --full --lane --text ade git sync --lane --rebase --base main --text ade git stage --lane ade git stage-all --lane ade git commit --lane -m "message" ade git push --lane --set-upstream --text ``` ## Rebase and conflicts ```bash ade git rebase --lane --ai --text ade git conflict show --lane --text ade git rebase continue --lane --text ``` `--ai` runs the rebase with ADE's AI-assisted conflict support; `ade git conflict show` prints ADE's view of the conflicted files. ## Gotchas - Use `--lane` for anything other than the active workspace. - Use `ade diff changes --lane --text` when you need ADE's view of file changes.