{"id":13897883,"url":"https://github.com/caarlos0-graveyard/zsh-git-sync","last_synced_at":"2026-01-23T06:13:20.053Z","repository":{"id":25129704,"uuid":"28551618","full_name":"caarlos0-graveyard/zsh-git-sync","owner":"caarlos0-graveyard","description":"A zsh plugin to sync git repositories and clean them up.","archived":false,"fork":false,"pushed_at":"2022-06-15T02:09:54.000Z","size":74,"stargazers_count":45,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-25T04:34:39.966Z","etag":null,"topics":[],"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/caarlos0-graveyard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-28T02:33:21.000Z","updated_at":"2024-10-28T15:17:14.000Z","dependencies_parsed_at":"2022-08-19T07:40:15.219Z","dependency_job_id":null,"html_url":"https://github.com/caarlos0-graveyard/zsh-git-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caarlos0-graveyard/zsh-git-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0-graveyard%2Fzsh-git-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0-graveyard%2Fzsh-git-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0-graveyard%2Fzsh-git-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0-graveyard%2Fzsh-git-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caarlos0-graveyard","download_url":"https://codeload.github.com/caarlos0-graveyard/zsh-git-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0-graveyard%2Fzsh-git-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265622558,"owners_count":23799995,"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":[],"created_at":"2024-08-06T18:03:55.932Z","updated_at":"2026-01-23T06:13:20.014Z","avatar_url":"https://github.com/caarlos0-graveyard.png","language":"Shell","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows"],"readme":"# git-sync [![Build Status](https://travis-ci.org/caarlos0/zsh-git-sync.svg?branch=master)](https://travis-ci.org/caarlos0/zsh-git-sync)\n\nSync git repositories and clean them up.\n\n![a gif showing git-sync in action](/git-sync.mov.gif)\n\n## Define `sync`\n\n- prune `origin` or `upstream`;\n- merge `upstream` into current branch;\n- push merged branch to fork (`origin`);\n- remove merged branches.\n\n## Install\n\n```console\n$ antibody bundle 'caarlos0/zsh-git-sync kind:path'\n```\n\nOr use `antigen` to load it as a shell plugin.\n\n## Fig\n\n[Fig](https://fig.io) adds apps, shortcuts, and autocomplete to your existing terminal.\n\nInstall `zsh-git-sync` in just one click.\n\n\u003ca href=\"https://fig.io/plugins/other/zsh-git-sync_caarlos0-graveyard\" target=\"_blank\"\u003e\u003cimg src=\"https://fig.io/badges/install-with-fig.svg\" /\u003e\u003c/a\u003e\n\n## Usage\n\nIf you used antibody, the folder will be cloned and added to your `$PATH`,\nso, calling `git sync` will just work out of the box.\n\n\nOtherwise, you'll need to add it to your git config:\n\n```console\n$ git config --global alias.sync '!zsh -ic git-sync'\n```\n\nThere is also `git delete-local-merged`, which only deletes\nlocally merged branches (part of the cleanup thing).\n\nAgain, with antibody, `git delete-local-merged` will just work, otherwise:\n\nExample:\n\n```console\n$ git config --global alias.delete-local-merged '!zsh -ic git-delete-local-merged'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0-graveyard%2Fzsh-git-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaarlos0-graveyard%2Fzsh-git-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0-graveyard%2Fzsh-git-sync/lists"}