{"id":18602676,"url":"https://github.com/montehurd/gitshorts","last_synced_at":"2026-02-16T12:37:09.963Z","repository":{"id":23573734,"uuid":"26941755","full_name":"montehurd/gitshorts","owner":"montehurd","description":"Shell scripts for super quick Git info.","archived":false,"fork":false,"pushed_at":"2025-01-31T22:52:04.000Z","size":1341,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T23:26:53.550Z","etag":null,"topics":["git","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montehurd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-21T02:22:48.000Z","updated_at":"2025-01-31T22:52:08.000Z","dependencies_parsed_at":"2022-07-27T04:02:25.090Z","dependency_job_id":null,"html_url":"https://github.com/montehurd/gitshorts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montehurd%2Fgitshorts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montehurd%2Fgitshorts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montehurd%2Fgitshorts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montehurd%2Fgitshorts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montehurd","download_url":"https://codeload.github.com/montehurd/gitshorts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394674,"owners_count":19631117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","shell-script"],"created_at":"2024-11-07T02:12:10.753Z","updated_at":"2025-11-02T10:30:25.509Z","avatar_url":"https://github.com/montehurd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitshorts\n\n\u0026nbsp;\n\n## Motivation\n\nWhen using Git on the command line, I found myself continually wanting to see:\n- **branches** I had locally and which was checked out\n- **logs** of recent commits with short commit messages\n- **status** of files in the currently checked out branch\n- **diffs** of modified but uncommitted files\n- **commits** and their file diffs\n\n\u0026nbsp;\n\n## Approach\n\nThese scripts make seeing everything mentioned above extremely easy. After installation, simply change to a directory under Git source control, then type `aaa` and press enter. You will see output formatted similar to the following:\n\n![Example output](https://raw.github.com/montehurd/gitshorts/master/screenshot.png)\n\nThe repeating sequence `aaa` was chosen to represent showing \"All\" the info mentioned [above](#user-content-motivation).\n\nNote in the picture above there are six other three-character codes. Three-character repeating codes are extremely easy to invoke. They represent the individual parts of the output displayed when `aaa` is invoked:\n\n- `bbb`\n    - **branches**, also indicating which branch is checked out\n- `lll`\n    - **log** of most recent commits with optional numeric argument (defaults to 5 if unspecified)\n- `sss`\n    - **status** of files\n- `ddd`\n    - **diff** for each modified but as-of-yet uncommitted file. once activated use arrow keys to navigate between individual file diffs. use `q` to exit back to `aaa`\n- `ccc`\n    - **commits**, showing diff for each historical commit. once activated use arrow keys to navigate between individual commit diffs. most recent commit diff is shown first. use `q` to exit back to `aaa`\n- `ppp`\n    - **prompt**, clearing other console text\n\n\u0026nbsp;\n\n## Installation\n\nIf this looks useful, installation is fairly easy:\n\n- run `git clone https://github.com/montehurd/gitshorts.git`\n- add `export PATH=$PATH:$HOME/gitshorts` to the bottom of your terminal config file. i.e. `~/.zshrc`, `~/.bashrc` or `~/.profile` etc. this basically routes the three-character commands to their respective scripts\n- restart your terminal program or reload your particular terminal's config file: i.e. `source ~/.bashrc`, `source ~/.zshrc` or `source ~/.profile` etc\n\n\u0026nbsp;\n\n## Tweaks\n\nEach of the three-character codes simply invokes a shell script file named with that three-character code. These scripts can be easily modified as needed - just edit the respective file.\n\n\u0026nbsp;\n\n## Known issues\n\nWhen using `ccc` or `ddd` to view very long diffs, I don't know how to scroll the terminal *completely* to the top in a platform independent way: https://github.com/montehurd/gitshorts/issues/1","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontehurd%2Fgitshorts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontehurd%2Fgitshorts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontehurd%2Fgitshorts/lists"}