semvec/pypi-packages huggingface dataset:
git996 0.0.4
One command to sync multiple git repositories

# git996
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)


one command to sync multiple git repositories.

I always have serveral git repositories to sync between home and company everyday.It's too tiring to sync repo one by one.This tool is used to sync all the repos one command.

Actually, git996 just enter every repo and execute `git pull` for you

# Install

## Install from PyPi
```
$pip3 install git996
```

## Uninstall from PyPi
```
$pip3 uninstall git996
$rm ~/.git996.toml
```

## Install from source code
```
$git clone https://github.com/chengyi818/git996
$cd git996
$python3 setup.py install --user
```

This will install `git996` to `~/.local/bin`,so maybe you need to add `~/.local/bin` to `PATH`.

## Uninstall from source code
```
$python3 setup.py install --user --record log
$cat log | xargs rm -rf
$rm ~/.git996.toml
```

# Usage

## 1. create config file
```
$git996 init
```
This command will create config file in `~/.git996.toml`.

## 2. modify config file
You should modify config file according your situation.

### return_if_dirty

#### True
git996 will print all path of dirty repo, then git996 will exit

#### False
git996 will ignore dirty repo,just pull clean repo.


## 3. sync all repositories
```
$git996 sync
```

# TODO
1. Think about local branch ahead/behind origin
[stackoverflow](https://stackoverflow.com/questions/17224134/check-status-of-local-python-relative-to-remote-with-gitpython)


# LiCENSE
Anti-996 License, See the LICENSE file.