GithubHelp home page GithubHelp logo

all's Introduction

all

Simple tool for managing several git repositories

Installation

$ git clone [email protected]:botverse/all.git

Put all within the $PATH scope.

You can do this for example:

# create a local bin directory
$ mkdir -p ~/.local/bin
# symlink the all script
$ ln -s ~/REPO_LOCATION/all ~/.local/bin/all
# add the created bin directory to the path scope
$ echo "export PATH=$PATH:~/.local/bin" >> ~/.bash_profile

Usage

By default all will understand that all the sub directories of the current CWD are git repositories, so having this directory structure.

 └ ~/workspace/
   ├ frontend/
   ├ backend/
   └ server/

you will be executing all in all the repos present in the current directory:

$ ~/workspace/$ all

you get:

frontend
On branch bootstrapping
nothing to commit, working directory clean

backend
On branch bootstrapping
nothing to commit, working directory clean

server
On branch bootstrapping
nothing to commit, working directory clean

You can tell all where the repositories are so you can execute it from any directory scope. Also you can specify which repositories to manage when working in a feature that won't affect all the repositories.

Check the configuration section for more information.

calling all with no arguments

will apply git status to all repos

$ all

is equivalent to

$ all status

calling all with any argument

will be applied to the repos

$ all pull upstream development

and so on...

Configure

Specify repos

If you are working in a specific set of applications, you have to define the ALL_REPOS environment var:

$ ALL_REPOS='modules/http modules/rest' all status

or define only once for that terminal session:

$ export ALL_REPOS='modules/http modules/rest'
...
$ all status # will only check http and rest

Home folder

If you define ALL_HOME to point to your workspace directory, you can call all from whichever directory:

$ echo export ALL_HOME=~/workspace >> ~/.bashrc

and then you can do all status from the module directory you are currently working on.

all's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

praveen20187

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.