Referencia de comandos
Cuarenta y cuatro comandos de primer nivel, con ciento cincuenta y ocho subcomandos por debajo. Esta página los agrupa por el trabajo que hacen; torii <comando> --help manda sobre las opciones.
Los cuatro del día a día
torii save -m "msg" # commit what is staged
torii save -am "msg" # stage everything, then commit
torii save <files> -m "msg" # stage these paths, then commit
torii save --stage <files> # stage without committing
torii save --amend -m "msg" # amend the last commit
torii save --revert <hash> -m "msg" # revert a commit
torii save --reset HEAD~1 --reset-mode soft # undo the last commit, keep changes
torii sync # pull, then push
torii sync --push | --pull | --fetch | --force
torii sync <branch> # integrate a branch, strategy chosen for you
torii sync <branch> --merge | --rebase | --preview
torii status
torii diff [--staged] [--last]save --reset --reset-mode hard descarta cambios; toma un snapshot antes, así que el descarte es reversible.
Mirar las cosas
torii log [-n 50] [--oneline] [--graph] [--author X] [--since D] [--grep P] [--stat] [--reflog]
torii show [<hash>|<tag>]
torii show <file> --blame [-L 10,20]
torii grep <pattern>
torii describeRamas, etiquetas, worktrees
torii branch # list
torii branch <name> -c # create and switch
torii branch -d <name> # delete
torii branch --rename <name>
torii tag create v1.0.0 -m "Release"
torii tag create --release # bump from conventional commits
torii tag push [v1.0.0]
torii worktree add -b feature/auth
torii worktree list
torii worktree remove ../hotfix # snapshot taken automaticallytag create --release lee los commits desde la última etiqueta: feat: sube la menor, fix: y perf: la de parche, un cambio incompatible la mayor. --dry-run enseña el veredicto sin crear nada.
Historia
torii history rebase main | HEAD~5 -i | --root
torii history rebase --continue | --abort | --skip
torii history reword <hash> -m "msg"
torii history reauthor --old "Old <a@x>" --new "New <b@y>"
torii history redate <hash> --date "2026-01-01"
torii history replace-text --redact-secrets
torii history filter-path --keep src --remove vendor
torii history exec-filter 'cargo fmt --all'
torii history remove-file <path>
torii history compact # pack objects, expire the reflog
torii history orphans # find unreachable objectsEstos tienen su propia página — mira Cirugía de historia.
Seguridad
torii snapshot create -n "before-refactor"
torii snapshot list | restore <id> | delete <id>
torii snapshot stash [-u] | unstash [<id>] [--keep]
torii snapshot undo
torii scan [--history]
torii ignore add 'build/'
torii ignore secret 'AKIA[0-9A-Z]{16}' --name AWS
torii ignore listPlataformas
torii clone github <user>/<repo>
torii remote create github,gitlab <name> --public --push
torii mirror add gitlab user <username> <repo> --primary
torii mirror sync
torii pr list | create | merge | close | checkout | open
torii issue list | create | close | comment
torii pipeline list | cancel | retry | delete
torii job list | log | retry | cancel | artifacts | erase
torii package list | files | delete
torii release list | show | edit | delete
torii runner register | spawn --docker | exec <job>Muchos repositorios a la vez
torii workspace add <name> ~/repos/api
torii workspace status <name>
torii workspace save <name> -m "wip" --all
torii workspace sync <name>Todo lo demás
torii init, torii clone, torii cherry-pick, torii sign, torii publish, torii config, torii auth, torii platforms, torii tui, torii submodule, torii subtree, torii bisect, torii archive, torii notes, torii patch, torii clean, torii remove, torii rename.