Skip to content

Command Reference

These pages are generated from the current gtl --help and gtl <command> --help output.

Git Operations

CommandAliasesDescription
gtl branchb, brFuzzy search and checkout branches
gtl commitc, cmCreate a commit from staged changes
gtl amendaAmend the last commit
gtl pushpAuto-commit local changes and push current branch
gtl mergemMerge current branch to main
gtl main-mergemainRebase current branch onto remote main
gtl syncsySync current branch with remote
gtl updateupFetch and pull latest remote changes
gtl fork-syncfsHard sync fork branch to upstream
gtl sync-loopContinuously sync branch at regular intervals
gtl watchContinuously commit local changes at regular intervals
gtl undouUndo the last commit
gtl stashshStash management commands
gtl cleanclClean merged branches
gtl diff-branchdb, diffCompare two branches
gtl worktreewtManage worktrees

Repository Info

CommandAliasesDescription
gtl statuss, stShow repository status overview
gtl historyh, histShow commit history
gtl dirtydShow dirty/uncommitted status
gtl recentrShow recently checked out branches
gtl searchSearch commits
gtl contributorscontrib, ctbShow top contributors by scope
gtl changelogclogGenerate changelog from conventional commits

Repository Management

CommandAliasesDescription
gtl findf, pathFind git repositories or resolve repo URLs
gtl listList git repositories as a tree
gtl reposScan for git repositories
gtl cloneClone repository into organized folders
gtl urlPrint repository URL for repo, folder, or pull requests
gtl openoOpen repository URL in browser
gtl desktopdeskOpen repository in GitHub Desktop
gtl excludexManage git exclude patterns
gtl ignoreigQuickly add ignore patterns
gtl linkLink a local folder into .gtl
gtl identityidManage local git identity for this repository
gtl envenvrcConfigure repo-local Git, gh, and glab identity
gtl whoamiwhoShow the current GitHub user

GitHub And Pull Requests

CommandAliasesDescription
gtl prprw, prmeFetch and display pull request information
gtl new-prCreate new pull request
gtl issuesiOpen repository issues in browser
gtl exportexExport PR or issue to markdown
gtl chatShow PR and issue comment timeline
gtl activityactShow GitHub activity

Utility

CommandAliasesDescription
gtl versionShow CLI version
gtl completionGenerate shell completion scripts
gtl configManage global gtl configuration

Released under the MIT License.