Giter Club home page Giter Club logo

cig's Introduction

cig

Can I go? CLI app for checking the state of your git repositories.

cig

Installation

To install cig, follow the instructions for your OS below:

GO

If you have go installed and the bin folder added to your path, just run:

$: go get github.com/stevenjack/cig

OSX

Make sure you have homebrew installed, then run the following:

$: brew install cig

Alternatively you can follow the install instructions for Linux below if you don't have or want to install homebrew.

Linux

One line install
curl -L https://bit.ly/cig-install | sudo bash

Note: this command downloads the binary and changes the execute permission on it

Manual install
curl -L https://github.com/stevenjack/cig/releases/download/v0.1.5/cig_`uname -s`_x86_64 > /usr/local/bin/cig
chmod +x /usr/local/bin/cig

Windows

Download the following binary:

Once you have the binary, run it via your cmd prompt:

C: cig_windows_amd64.exe

Setup

Create a .cig.yaml configuration file within your home directory:

Linux

~/.cig.yaml

work: /path/to/work/repos
personal: /path/to/personal/repos

Windows

~/Users/Steven Jack/.cig.yaml

work: C:\path\to\work\repos
personal: C:\path\to\personal\repos

The configuration file defines the different folder locations that contain the .git repos you want cig to check for you.

Usage

Simply run:

$: cig

Once executed, cig will check all your repos and the following information will be displayed:

  • Repos that need pushing up to the origin: P
  • Repos that have new, unstaged and staged changes: M(10)

Note: the values will soon be replaced with something similar to:
(S)taged, (M)odified, (N)ew
Please see the issues page for full details

Filters

If you just want to check your 'work' repos for changes:

$: cig -t work

To filter them based on a certain string such as 'steve':

$: cig -f steve

You can also combine them, so to only show 'work' repos with 'steve' in the path:

$: cig -t work -f steve

TODO

Please see issues

Contributing

  1. Fork it ( http://github.com/stevenjack/cig/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

cig's People

Contributors

geertjohan avatar integralist avatar stevenjack avatar vic3lord 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.