A Handy
command is a CLI tool written in NodeJS for managing git repo & sub repos in the current directly. We can extend to support other commands in the future.
- Node version 8 or later
- Has been tested and daily usage with ZSH. It should still work with Bash but not recommended
npm install -g @chainat/handy
- List all git repo status -
handy git-status
orhandy git-status -a
to show all git submodule repos & the status - Checkout the latest platform code and push the latest platform changes -
handy git-sync
- It goes to all submodules and checkout
develop
branch - It captures the latest commits from all repos and push to platform repo if submodules have changed.
- It goes to all submodules and checkout
- Checkout only -
handy git-sync -p
- See help -
handy --help