Giter VIP home page Giter VIP logo

gitsh's Introduction

gitsh

The gitsh program is an interactive shell for git. From within gitsh you can issue any git command, even using your local aliases and configuration.

Build Status Code Climate

Why should you use gitsh?

  • Git commands tend to come in groups. Avoid typing git over and over and over by running them in a dedicated git shell:

      sh$ gitsh
      gitsh% status
      gitsh% add .
      gitsh% commit -m "Ship it!"
      gitsh% push
      gitsh% :exit
      sh$
    
  • Hit return with no command to run git status, saving even more typing:

      gitsh% ⏎
      # On branch master
      nothing to commit, working directory clean
      gitsh% 
    
  • Make temporary modifications to your git configuration with gitsh config variables. These changes only effect git commands issues in this gitsh session and are forgotten when you exit, just like shell environment variables.

      gitsh% :set user.name 'George Brocklehurst and Mike Burns'
      gitsh% :set user.email [email protected]
      gitsh% commit -m 'We are pair programming'
    
  • Tab completion for git commands, aliases, and branches without modifying your shell settings, and without any extra setup for aliases and third party git commands.

  • Information about the state of your git repository in the prompt, without modifying your shell settings. This includes the name of the current HEAD, and a colour and sigil to indicate the status.

  • It works with hub and gh:

      sh$ gitsh --git $(which gh)
      gitsh% pull-request
    

Installing gitsh

  • On Mac OS X, via homebrew:

      brew tap thoughtbot/formulae
      brew install gitsh
    
  • On Arch Linux: https://github.com/thoughtbot/gitsh/blob/master/arch/PKGBUILD

  • On other operating systems:

      curl -O http://thoughtbot.github.io/gitsh/gitsh-0.3.tar.gz
      tar -zxf gitsh-0.3.tar.gz
      cd gitsh-0.3
      ./configure
      make
      make install
    

Contributing to gitsh

Pull requests are very welcome. See the contributing guide for more details.

License

gitsh is Copyright © 2014 Mike Burns, George Brocklehurst, and thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

Similar projects

gitsh's People

Contributors

georgebrock avatar mike-burns avatar aldrik avatar tomlea avatar pbrisbin avatar

Watchers

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