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
$pip3 install git996
$pip3 uninstall git996
$rm ~/.git996.toml
$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
.
$python3 setup.py install --user --record log
$cat log | xargs rm -rf
$rm ~/.git996.toml
$git996 init
This command will create config file in ~/.git996.toml
.
You should modify config file according your situation.
git996 will print all path of dirty repo, then git996 will exit
git996 will ignore dirty repo,just pull clean repo.
$git996 sync
- Think about local branch ahead/behind origin stackoverflow
Anti-996 License, See the LICENSE file.