GIT-INFO(1)
π git-info β bestie, let me read your repo's whole vibe
okay so it's GIT-INFO(1), it lives in the Git Extras collection, and it's literally just a little gossip-spiller for your current repo. No cap.
β¨ NAME β¨
git-info β Returns information on current repository π
β¨ SYNOPSIS β¨
ngl bestieβ¦ there is nothing here. the synopsis is empty. you just run it, no flags required, no arguments to stress about. iconic behaviour honestly. π
β¨ DESCRIPTION β¨
It shows the following info about a repository β like a little status report card for your repo's main character era:
- Remote Url(s) π
- Remote Branches π³
- Local Branches πΏ
- Submodule(s) (if present) π§©
- Most recent commit π
- Configuration Info βοΈ
β¨ OPTIONS β¨
-c,--colorβ use color for the information titles. yes bestie, make the headers pop. π--no-configβ don't show / don't list all variables set in the config file along with their values. like, skip that whole section, we're being mysterious today. π
β¨ GIT CONFIGS β¨
you can customize the Most recent commit and Configuration Info formats via git config options. it's giving "make it your own" π
$ git config --global --add git-extras.info.log "<log-command>"
the default log-command is "git log --max-count=1 --pretty=short"
$ git config --global --add git-extras.info.config-grep "<config-grep-command>"
the default config-grep-command is "git config --list"
For example,
to set global configuration to show last commit subject, without sha1 π
$ git config --global --add git-extras.info.log "git log --max-count=1 --format=\"Author: %an%nDate: %ad (%ar)%n%n %s\" --date=format:\"%Y-%m-%d %a %H:%M\""
to set global configuration to show user's name and email π
$ git config --global --add git-extras.info.config-grep "git config --list | grep --color=never -E \"^user.name|^user.email\""
β¨ EXAMPLES β¨
Outputs info about a repo. here's the whole thing, verbatim, no edits, we don't gatekeep:
$ git info
## Remote URLs:
origin git@github.com:sampleAuthor/git-extras.git (fetch)
origin git@github.com:sampleAuthor/git-extras.git (push)
## Remote Branches:
origin/HEAD -> origin/master
origin/myBranch
## Local Branches:
myBranch
* master
## Submodule(s):
a234567 path2submodule1/submodule1 (branch/tag)
+ b234567 path2submodule2/submodule2 (branch/tag)
- c234567 path2submodule3/submodule3 (branch/tag)
e234567 path2submodule4/submodule4 (branch/tag)
## Most Recent Commit:
commit e3952df2c172c6f3eb533d8d0b1a6c77250769a7
Author: Sample Author <sampleAuthor@gmail.com>
Added git-info command.
## Configuration (.git/config):
color.diff=auto
color.status=auto
color.branch=auto
user.name=Sample Author
user.email=sampleAuthor@gmail.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=git@github.com:mub/git-extras.git
branch.master.remote=origin
branch.master.merge=refs/heads/master
β¨ AUTHOR β¨
Written by Leila Muhtasib <muhtasib@gmail.com> β shoutout to the icon who made this π«Ά
β¨ REPORTING BUGS β¨
<https://github.com/tj/git-extras/issues>
(find a bug? tell the girls there, they'll sort it π)
β¨ SEE ALSO β¨
<https://github.com/tj/git-extras>
okay bestie that's the whole page, nothing left out, no crumbs. go run git info and read your repo's diary. πβ¨
and that's a wrap from the Git Extras girlies β this one's dated May 2026, so it's fresh, periodt. ππ
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms