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:

  1. Remote Url(s) 🌐
  2. Remote Branches 🌳
  3. Local Branches 🌿
  4. Submodule(s) (if present) 🧩
  5. Most recent commit πŸ“
  6. 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