LinuxCommandLibrary

git-info

Display information about a Git repository

TLDR

Display remote locations, remote and local branches, most recent commit data, and .git/config settings

$ git info
copy

Display remote locations, remote and local branches, and most recent commit data
$ git info --no-config
copy

SYNOPSIS

git info [<options>] (invalid; not recognized)

DESCRIPTION

git-info is not a standard command or subcommand in Git, the popular distributed version control system used on Linux and other platforms.

Git operates via subcommands invoked as git <subcommand> (e.g., git status, git log). Running git info or git-info produces an error: 'git: 'info' is not a git command. See 'git --list-cmds=aliases' (for user-defined aliases) or 'git --list-cmds=built-ins' (for built-in commands).'

This command does not exist in core Git distributions. It might refer to a custom alias, script, third-party tool, or plugin (e.g., in specific IDEs or Git extensions). For repository information, use built-in commands like git status (working tree status), git log --oneline (commit history), or git remote -v (remotes). Verify available commands with git --list-cmds=all. No official documentation exists for git-info in Git man pages.

CAVEATS

Attempting to execute yields an error. Not part of core Git; check aliases with git config --get-regexp alias. Custom setups may vary.

ALTERNATIVES FOR INFO

Repository overview: git status or git branch -v.
Commit details: git log --stat or git show.
Config info: git config --list.

CHECKING COMMANDS

List all: git --list-cmds=all | grep info (typically empty).
Aliases: git alias or git config -l | grep alias.

HISTORY

Git originated in 2005 by Linus Torvalds for Linux kernel development. Core commands expanded over releases (e.g., Git 1.0 in 2005, 2.0 in 2014), but no git info subcommand added in standard versions up to Git 2.46 (2024).

SEE ALSO

Copied to clipboard