git-number
brew install git-number
v1.0.1
ISC
Use numbers for dealing with files in git
8
30-day installs · #9130
14
90-day · #10906
58
365-day · #10639
290
★ GitHub stars · updated 4mo ago
Links
- https://github.com/holygeek/git-number
- GitHub: holygeek/git-number
- Brew formula source: Formula/g/git-number.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Use numbers for dealing with files in git",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:04+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "git-number",
"github_default_branch": "master",
"github_last_commit_at": "2026-04-07T08:02:05Z",
"github_readme_excerpt": "### git-number ###\n\n`git-number` is a program that increases my command-line git productivity.\nThe original version was written in Perl. The Perl implementation has\nbeen preserved in the `perl` branch and will no longer be updated.\nThe current version is written in Go.\n## Usage Examples ##\n\nHere\u0027s how it increases my productivity (and might increase yours, too):\n\nInitial setup\n```console\n# set up `git id` and `git list` as shortcuts for `git number id` and `git number list`\ngit number --set-git-alias\n\n# set shell aliases\nalias g=\u0027git number --column\u0027\nalias ga=\u0027git number add\u0027\nalias gd=\u0027git number diff\u0027\nalias ge=\u0027git number -c\u0027\n# See item 4 in the Caveat section on --column\n```\n\nUse it\n```\n$ g\n# On branch master\n\n# Untracked files:\n# (use \"git add \u003cfile\u003e...\" to include in what will be committed)\n#\n#1 .README.swp\n#2 README\n$\n```\n\nDoes the output look familiar? Notice the numbers before the filenames? Those\nare their ids.\n\nIf you prefer the short status format then you can use the `-s` option. This\nwill run `git status` with the `--short` option.\n\n```console\n$ git number -s\n1 ?? .README.swp\n2 ?? README\n```\n\nNow look at this:\n\n```console\n$ ga 2\ngit add README # \u003c- It does this in the background\n\n$ g\n# On branch master\n# Changes to be committed:\n# (use \"git reset HEAD \u003cfile\u003e...\" to unstage)\n#\n#1 new file: README\n#\n# Untracked files:\n# (use \"git add \u003cfile\u003e...\" to include in what will be committed)\n#\n#2 .README.swp\n```\n\nWhen run without arguments, `git number` runs `git status` and attach a unique\nnumber for each line of filename printed by `git status`, and it will \u0027remember\u0027\nthis number-to-filename association. When run with arguments, like this:\n\n```console\n$ git number \u003cany git command\u003e [one or more numbers or git options/args]\n```\n\n`git number` will run that \u0026lt;any git command\u0026gt; and subtitute all the numbers\nto their equivalent filenames. Non-numeric argument are passed intact to git.\n\nIt accepts multiple args and ranges too:\n\n```consol",
"github_repo": "holygeek/git-number",
"github_stars": 290,
"github_topics": [],
"homepage": "https://github.com/holygeek/git-number",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 8,
"installs_365d": 58,
"installs_90d": 14,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "ISC",
"llm_generated_at": null,
"llm_model": null,
"name": "git-number",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 9130,
"rank_365d": 10639,
"rank_90d": 10906,
"raw_hash": "80e966391cb9216c",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/git-number.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "1.0.1",
"versioned_formulae": [],
"why_use_this": null
}