{"id":17962655,"url":"https://github.com/eneko/git-extensions","last_synced_at":"2026-05-05T12:32:28.400Z","repository":{"id":136800848,"uuid":"91382660","full_name":"eneko/git-extensions","owner":"eneko","description":"Custom commands for `git`that I frequently use","archived":false,"fork":false,"pushed_at":"2017-05-15T21:06:21.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:21:54.746Z","etag":null,"topics":["git","github"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eneko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T20:39:16.000Z","updated_at":"2019-06-17T21:34:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7903a86e-fd96-43b3-af63-f9f44a689ae6","html_url":"https://github.com/eneko/git-extensions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eneko/git-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2Fgit-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2Fgit-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2Fgit-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2Fgit-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eneko","download_url":"https://codeload.github.com/eneko/git-extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2Fgit-extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","github"],"created_at":"2024-10-29T11:20:04.047Z","updated_at":"2026-05-05T12:32:28.382Z","avatar_url":"https://github.com/eneko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-extensions\nCustom commands for `git` that I use.\n\n## Installation\nGit commands are scripts run by `git`. They must reside in a folder in your path and must be executable by your user. Instead of placing them in `/usr/local/bin` or similar, I recomend placing them inside a `bin` folder in your home directory.\n\nOn your home directory, create a `bin` folder (if you don't have one already):\n\n`$ mkdir -p ~/bin`\n\nAdd that folder to your PATH for the scripts to be accessible by `git`:\n\n`$ vim ~/.bash_profile`\n\nAppend the line:\n\n`export PATH=\"$HOME/bin:$PATH\"`\n\nSave the scripts from this repository to `~/bin` and make them executable with `chmod`:\n\n`$ chmod 755 \u003cfilename\u003e`\n\n## Usage\n\n### git purge\n`git purge` removes any tracked local branches that no longer exist in remote, and pulls the latest code changes. It relies on the status of `git branch -vv` to detect 'gone' branches. Because this command also pulls the latest code, I use it instead of `git pull` when working on projects with where bug and/or feature branches are used on a daily basis.\n\n```\n$ git purge\nPulling latest code...\nAlready up-to-date.\nDeleting local branches that were removed in remote...\nFrom https://github.com/yourteam/yourrepo\n - [deleted]         (none)     -\u003e origin/feature/your-feature-branch\nDone.\n```\n\n### git purgetags\n`git purgetags` removes any local tags not found on remote. It relies on the fact that all tags can be removed locally and then fetched again from remote. I rarely use this command, mainly to sync my local when new releases are made.\n\n```\n$ git purgetags\nDeleting local tags and pulling from remote...\nDeleted tag '0.0.1' (was 4f40861)\nDeleted tag '0.0.2' (was 3af9fa1)\nDeleted tag '0.0.3' (was a6988d1)\nFrom https://github.com/yourteam/yourrepo\n * [new tag]         0.0.1      -\u003e 0.0.1\n * [new tag]         0.0.2      -\u003e 0.0.2\n * [new tag]         0.0.3      -\u003e 0.0.3\nDone.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Fgit-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feneko%2Fgit-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Fgit-extensions/lists"}