Git Product home page Git Product logo

git-summary-sh's Introduction

Forked in order to allow it to work on Windows if using git bash, cygwin or equivalent

Installation

npm i -g git-summary

git-summary

If you ever experienced one of the following situations, git-summary is for you.

  • I don't remember where some of my repositories are...
  • Did I forgot to push that commit?
  • Do I have a repo in my system that is outdated?
  • Did someone pushed new commits to origin/master in one of my repos?
  • Did I commit that quick change I made before the pizza delivery guy rang my door?

git-summary is a bash script that will neatly list the current status of any git repos it founds within a directory or your entire system. See the example screenshot below:

Requirements

Linux

  • sudo apt-get install gawk

MacOS

  • brew install coreutils

Installation

Via aliasing

Clone this repo and alias the script. To do so, add the following line to ~\.bashrc:

alias git-summary='<PATH>/git-summary/git-summary'

<PATH> is the path to the cloned repo. Don't worry, if you ever forget where you cloned this repo, you will be able to easily find it with git-summary ๐Ÿ˜‰

Via executable lookup

Copy git-summary in /usr/local/bin.

Usage

General usage:

git-summary [options] path

path is optional and the current directory will be used if left blank.

Options

  • -h: Print help and exit.
  • -l: Local summary lookup. Checks only local changes which is faster as there is no need to fetch the remote.
  • -d: Deep lookup. Will look for any git repos within the entire current directory tree. Can be slowish for large trees.
  • -s: Summary. Only print the number of things that need work

Branch status

Currently, git-summary does not list multiple branches per repo. However, for single repos git-branch-status does this beautifully.

Credits

A big thanks ๐Ÿค˜ to the amazing people that wrote the original versions of git-summary:

git-summary-sh's People

Contributors

mirkoledda avatar iamdevlinph avatar lordadamson avatar renozao avatar rw251 avatar stdedos avatar

Watchers

James Cloos 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.