Giter Club home page Giter Club logo

git-bulk's Introduction

git-bulk

git bulk adds covenient support for operations that you want to execute on multiple git repositories.

features

  • simply register workspaces that contain multiple git repos in their directory structure
  • run any git command on the repositories of the registered workspaces in one command to git bulk
  • use the "guarded mode" to check on each execution

usage

usage: git bulk [-g] ([-a]|[-w <ws-name>]) <git command>
       git bulk --addworkspace <ws-name> <ws-root-directory>
       git bulk --removeworkspace <ws-name>
       git bulk --addcurrent <ws-name>
       git bulk --purge
       git bulk --listall

installation

  1. get the git-bulk.sh
  2. create symlink like ln -s <path to script>/git-bulk.sh /usr/local/bin/git-bulk
  3. make the git-bulk.sh script executable with chmod -u+x <path to script>/git-bulk.sh

samples

Register a workspace so that git bulk knows about it:

$ git bulk --addworkspace personal ~/workspaces/personal

Register the current directory as a workspace to git bulk

$ git bulk --addcurrent personal

List all registered workspaces:

$ git bulk --listall
bulkworkspaces.personal /Users/niklasschlimm/workspaces/personal

Run a git command on the repositories of the current workspace:

$ git bulk fetch

fetchdemo

Run a git command on one specific workspace and its repositories:

$ git bulk -w personal fetch

Run a git command on all workspaces and its repositories:

$ git bulk -a status -s

Run a git command but ask user for confirmation on every execution (guarded mode):

$ git bulk -g fetch

Remove a registered workspace:

$ git bulk --removeworkspace personal

Remove all registered workspaces:

$ git bulk --purge

git-bulk's People

Contributors

nschlimm avatar migu 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.