{"id":19037068,"url":"https://github.com/retgits/gh","last_synced_at":"2026-05-06T13:34:11.179Z","repository":{"id":57553617,"uuid":"135479823","full_name":"retgits/gh","owner":"retgits","description":" A collection of git helper commands, combined in a single CLI, to make my life a little easier","archived":false,"fork":false,"pushed_at":"2019-04-29T00:01:59.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T06:14:09.513Z","etag":null,"topics":["github","gogs","jenkins","lambda-functions","tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/retgits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-30T18:04:21.000Z","updated_at":"2019-04-28T23:57:45.000Z","dependencies_parsed_at":"2022-08-28T09:31:39.279Z","dependency_job_id":null,"html_url":"https://github.com/retgits/gh","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fgh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fgh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fgh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fgh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retgits","download_url":"https://codeload.github.com/retgits/gh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093186,"owners_count":19746786,"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":["github","gogs","jenkins","lambda-functions","tools"],"created_at":"2024-11-08T21:58:36.588Z","updated_at":"2026-05-06T13:34:06.154Z","avatar_url":"https://github.com/retgits.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh - a collection of git helper commands\n\n[![Travis](https://img.shields.io/travis/retgits/gh.svg?style=flat-square)](https://travis-ci.org/retgits/gh)\n[![License](https://img.shields.io/github/license/retgits/gh.svg?style=flat-square)](https://github.com/retgits/gh/blob/master/LICENSE)\n[![Release](https://img.shields.io/github/release/retgits/gh.svg?style=flat-square)](https://github.com/retgits/gh/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/retgits/gh)](https://goreportcard.com/report/github.com/retgits/gh)\n[![Stability](https://img.shields.io/badge/stability-stable-green.svg?style=flat-square)](https://img.shields.io/badge/stability-stable-green.svg?style=flat-square)\n\n![gh](./gh.png)\n\n`gh` is a collection of git helper commands to make my life a little easier. The command-line tool wraps a number of git commands that I frequently use.\n\n## Install\n\nTo install `gh` from source, run\n\n```bash\ngo get -u github.com/retgits/gh\n```\n\nOr get a release version from the [releases](./releases) tab.\n\n## Configuration\n\nConfiguration is done using flags for the commands, or using the `.ghconfig.yml` file in your `HOME` directory. The config file has the following parameters:\n\n```yml\ngit:\n  author:      ## The default author for projects (usually your GitHub name)\n  basefolder:  ## The base folder to clone repositories to\ngithub:\n  accesstoken: ## The personal access token to connect to GitHub\ngogs:\n  accesstoken: ## The personal access token to connect to Gogs\n  apiendpoint: ## The API endpoint  of the Gogs server (like http://localhost/api/v1)\n```\n\n## Usage\n\n```bash\nUsage:\n  gh [command]\n\nAvailable Commands:\n  all            Stage all unstaged files\n  amend          Use the last commit message and amend your stuffs\n  clone          Clone a repository to a specified directory\n  commit         A simpler alias for \"git commit -a -S -m\"\n  create-project Create a Go project\n  create-repo    Create a repository\n  credit         A very slightly quicker way to credit an author on the latest commit\n  help           Help about any command\n  nuke-branch    Removes a branch locally and on the remote origin\n  undo           Undo the last commit, but don't throw away any changes\n\nFlags:\n      --config string   config file (default is $HOME/.ghconfig.yml)\n  -h, --help            help for gh\n      --version         version for gh\n\nUse \"gh [command] --help\" for more information about a command.\n```\n\nFor more detailed information on the commands, check the [docs](./docs/commands.md)\n\n## License\n\nSee the [LICENSE](./LICENSE) file in the repository","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretgits%2Fgh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretgits%2Fgh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretgits%2Fgh/lists"}