Code Monkey home page Code Monkey logo

clustergit's Introduction

clustergit

clustergit allows you to run git commands on multiple repositories at once. It is especially useful to run git status recursively on one folder.

clustergit supports git status, git pull, git push, and more.

It is a renamed and slightly improved version of Mike Pearce's show_status.

Installation

Make the script executable and drop it somewhere in your $PATH.

Usage

Usage: clustergit [options]

clustergit will scan through all subdirectories looking for a .git directory. When it finds one it'll look to see if there are any changes and let you know. If there are no changes it can also push and pull to/from a remote location.

Options

  -h, --help            show this help message and exit
  -d DIRNAME, --dir=DIRNAME
                        The directory to parse sub dirs from
  -v, --verbose         Show the full detail of git status
  -a ALIGN, --align=ALIGN
                        Repo name align (space padding)
  -r REMOTE, --remote=REMOTE
                        Set the remote name (remotename:branchname)
  --push                Do a 'git push' if you've set a remote with -r it will
                        push to there
  -p, --pull            Do a 'git pull' if you've set a remote with -r it will
                        pull from there
  -c, --clear           Clear screen on startup
  -C, --count-dirty     Only display a count of not-clean repos
  -q, --quiet           Skip startup info
  -H, --hide-clean      Hide clean repos
  -R, --relative        Print relative paths
  -n, --no-colors       Disable ANSI color output
  -b BRANCH, --branch=BRANCH
                        Warn if not on this branch
  --recursive           Recursively search for git repos
  -e EXCLUDE, --exclude=EXCLUDE
                        Regex to exclude directories
  -B CBRANCH, --checkout-branch=CBRANCH
                        Checkout branch
  --warn-unversioned    Prints a warning if a directory is not under git
                        version control

Contact

via https://github.com/mnagel/clustergit

Credits

License

Files:

  • clustergit, README.*

Copyright:

License:

  • Mike Pearce: "Feel free to use it how you like, no licence required."
  • catchamonkey: "I guess whatever the original show_status's license is would apply to my patches. Other than that, I consider my additions to be public domain-ish or 2-clause BSD."
  • Michael Nagel: "Donated into the Public Domain."

clustergit's People

Contributors

anestisb avatar benediktarnold avatar mikepearce avatar mnagel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.