Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caarlos0-graveyard/zsh-git-sync
A zsh plugin to sync git repositories and clean them up.
https://github.com/caarlos0-graveyard/zsh-git-sync
Last synced: 18 days ago
JSON representation
A zsh plugin to sync git repositories and clean them up.
- Host: GitHub
- URL: https://github.com/caarlos0-graveyard/zsh-git-sync
- Owner: caarlos0-graveyard
- License: mit
- Created: 2014-12-28T02:33:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T02:09:54.000Z (over 2 years ago)
- Last Synced: 2024-08-07T18:44:42.152Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 72.3 KB
- Stars: 44
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# git-sync [![Build Status](https://travis-ci.org/caarlos0/zsh-git-sync.svg?branch=master)](https://travis-ci.org/caarlos0/zsh-git-sync)
Sync git repositories and clean them up.
![a gif showing git-sync in action](/git-sync.mov.gif)
## Define `sync`
- prune `origin` or `upstream`;
- merge `upstream` into current branch;
- push merged branch to fork (`origin`);
- remove merged branches.## Install
```console
$ antibody bundle 'caarlos0/zsh-git-sync kind:path'
```Or use `antigen` to load it as a shell plugin.
## Fig
[Fig](https://fig.io) adds apps, shortcuts, and autocomplete to your existing terminal.
Install `zsh-git-sync` in just one click.
## Usage
If you used antibody, the folder will be cloned and added to your `$PATH`,
so, calling `git sync` will just work out of the box.Otherwise, you'll need to add it to your git config:
```console
$ git config --global alias.sync '!zsh -ic git-sync'
```There is also `git delete-local-merged`, which only deletes
locally merged branches (part of the cleanup thing).Again, with antibody, `git delete-local-merged` will just work, otherwise:
Example:
```console
$ git config --global alias.delete-local-merged '!zsh -ic git-delete-local-merged'
```