Nihilist Postmodern Mistake

    @cego/gitte

    0.0.5 • Public • Published

    gitte

    quality license Renovate Quality Gate Status Coverage Code Smells

    Tool to help keep a range of projects up to date with git version control, and also help execute commands and scripts across projects. For configuration options please refer to config documentation.

    Installation

    Install using npm

    Requires npm and node version 16 or higher.

    npm install -g @cego/gitte
    

    Linux binaries

    curl -s "https://cego.github.io/gitte/ppa/pubkey.gpg" | sudo apt-key add -
    sudo curl -s -o /etc/apt/sources.list.d/gitte.list "https://cego.github.io/gitte/ppa/gitte.list"
    sudo apt-get update
    sudo apt-get install gitte

    Basic usage

    In a terminal in a folder with a gitte configuration, or a subfolder thereof, run:

    $ gitte run <actions> <groups> [projects]`
    

    Gitte will then do the following

    1. Run all specified startup checks. If any fail, exit.
    2. Try to update all projects with git pull. Will inform the user if update is not possible. Gitte should never overwrite local changes.
    3. Execute the desired action with the given group. The optional project parameter can be used to limit the projects the action and group will run in.

    An optional option --auto-merge can be supplied, that will automatically merge origin/<default_branch> into each project, if you are on a non-default branch without local changes or conflicts. This can also be set by the env variable GITTE_AUTO_MERGE=true.

    Wildcards and lists

    All three parameters support the wildcard '*' which will run all action, groups or projects. For example one might want to run all actions in all groups, which can be accomplished with

    gitte run '*' '*'
    

    If you want to specify multiple actions, groups or project, please use the + operator.

    gitte run build+deploy example.com
    

    Other commands

    For other usage, such as running startup, git operations or actions seperately, please refer to commands documentation, or see gitte --help.

    Install

    npm i @cego/gitte

    DownloadsWeekly Downloads

    10

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    203 kB

    Total Files

    24

    Last publish

    Collaborators

    • firecow
    • moberg