Gitorii Logo Gitorii

Commands

Full reference for all Gitorii commands and flags.


torii save

Stage and commit. Runs secret scanner before committing.

$ torii save -m "feat: add feature"
$ torii save -m "fix: bug" --all
$ torii save -m "fix: bug" src/main.rs
$ torii save -m "update" --amend
$ torii save --revert abc1234
$ torii save --reset abc1234 --reset-mode hard

torii sync

Push, pull, or integrate branches.

$ torii sync
$ torii sync --pull
$ torii sync --push
$ torii sync --force
$ torii sync --fetch
$ torii sync main
$ torii sync main --rebase
$ torii sync main --preview

torii status

$ torii status

torii diff

$ torii diff
$ torii diff --staged
$ torii diff --last

torii log

$ torii log
$ torii log -n 10
$ torii log --oneline --graph
$ torii log --author "Alice"
$ torii log --since 2025-01-01 --until 2025-06-01
$ torii log --grep "feat:"
$ torii log --stat

torii branch

$ torii branch
$ torii branch -l
$ torii branch -a
$ torii branch -c feature/x
$ torii branch -d feature/x
$ torii branch -r new-name

torii ls

List all tracked files.

$ torii ls
$ torii ls src/

torii show

Show commit, tag, or blame info.

$ torii show
$ torii show abc1234
$ torii show v1.0.0
$ torii show --blame src/main.rs
$ torii show --blame src/main.rs -L 10,20

torii history

$ torii history rewrite "2024-01-01 00:00" "2024-06-01 12:00"
$ torii history clean
$ torii history reflog -n 20
$ torii history remove-file path/to/secret.txt
$ torii history cherry-pick abc1234
$ torii history blame src/main.rs -L 10,20
$ torii history scan
$ torii history scan --history
$ torii history rebase main
$ torii history rebase main -i

torii tag

$ torii tag create v1.0.0 -m "Release"
$ torii tag list
$ torii tag delete v1.0.0
$ torii tag push
$ torii tag release --bump minor --dry-run

torii clone

# Shorthand (recommended)
$ torii clone github user/repo
$ torii clone gitlab user/repo
$ torii clone codeberg user/repo
$ torii clone github user/repo -d my-folder

# Full URL still works
$ torii clone git@github.com:user/repo.git

torii ssh-check

$ torii ssh-check