LinuxCommandLibrary

gt

No "gt" command exists natively in Linux

TLDR

Initialize gt for the repository in the current directory

$ gt init
copy

Create a new branch stacked on top of the current branch and commit staged changes
$ gt create [branch_name]
copy

Create a new commit and fix upstack branches
$ gt modify -cam [commit_message]
copy

Force push all branches in the current stack to GitHub and create or update PRs
$ gt stack submit
copy

Checkout different branch (prompts interactive mode when branch name is omitted)
$ gt co [branch_name]
copy

Sync stack with remote version (also deletes merged branches)
$ gt sync
copy

Log all tracked stacks
$ gt log short
copy

Display help for a specified subcommand
$ gt [subcommand] --help
copy

SYNOPSIS

gt [options] [arguments] (non-standard; syntax varies)

DESCRIPTION

'gt' is not a standard Linux command included in coreutils, busybox, or typical distributions like Ubuntu, Debian, Fedora, or Arch Linux. Running man gt or which gt on standard systems yields no results.

It may refer to:
• A custom alias or script (e.g., for 'git tag').
• Tools from specific packages like GNU Global's gtags (source code tagger).
• Obscure utilities like gt5 (graphical top viewer).
• Shell test operator [ arg1 -gt arg2 ] for 'greater than'.
• Redirection operator > (greater-than symbol).

Verify locally with command -v gt or check installed packages. If from a third-party tool (e.g., Rust-based 'gt' on GitHub), consult its documentation for usage.

CAVEATS

Absent from standard man pages and PATH. May cause 'command not found' error. Avoid assuming availability in scripts.

VERIFICATION TIP

Run apt search gt | grep ^gt (Debian/Ubuntu) or pacman -Ss gt (Arch) to find packages.

COMMON CONFUSION

Often mistaken for shell -gt (numeric greater-than) or > (output redirection).

HISTORY

No official history as a standard command. Possible origins in niche tools or user aliases since early 2000s (e.g., gt5 from 2005). Modern GitHub projects revive 'gt' names for grep/git alternatives.

SEE ALSO

gtags(1), global(1), test(1), top(1)

Copied to clipboard