Giter Site home page Giter Site logo

vcsdo's Introduction

vcsdo -- Uniform commands for git, svn, hg repositories

vcs are a nice invention but unfortunately even the most trivial tasks are achieved in different ways depending on which vcs you use. This ruby script tries to facilitate, e.g., updating local copies of different vcs.

vcsdo does not aim at being a grand unified ui. It supports only simple tasks, things you would want to do when you keep a local copy of a source code repository to stay up to date but don't want to actually work on the code.

The following vcs are supported to some extent: git, svn, hg, bzr.

Configuration

Configuration is done via yaml files:

  • Linux: ~/.vcsdo.yml, /etc/vcsdo.yml
  • Windows: %WINDIR%/vcsdo.yml, %USERPROFILE%/vcsdo.yml

In configuration files, users can define aliases for the -e or -d command-line option. Such a yaml file could look like this:

---
aliases:
    bundle: ~/.vim/bundle
    repos: ~/src/repos

Examples

Update the current directory:

vcsdo update

Update all directories below a common root directory:

vcsdo --each ..../myLocalCopies update

Use an alias:

vcsdo --each @repos update

The first remaining argument can also be a VCS type. This is useful for certain commands so you can use aliases. E.g., create a local copy of a git repository in the @repos directory:

vcsdo -d @repos git clone git://github.com/foo/bar

See "vcsdo --help" for a list of supported commands. Some commands are not supported for certain vcs types.

Run "vcsdo -n ..." to see which commands would be issued.

Dependency

  • ruby 1.8

vcsdo's People

Contributors

tomtom avatar

Stargazers

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