gitsh

An interactive shell for git

  • 所有者: thoughtbot/gitsh
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

For a quick introduction to gitsh, watch our video on Upcase. For further
documentation, you can view the man page by running man gitsh in your
terminal.

Build Status
Code Climate
Reviewed by Hound

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:

  • Hit return with no command to run git status (change this
    command by setting gitsh.defaultCommand via git config; remember it will
    be prefixed with git ), saving even more typing:

    gitsh% ⏎
    # On branch master
    nothing to commit, working directory clean
    gitsh%
    
  • Easily execute shell commands:

    gitsh% !echo Hello world
    Hello world
    gitsh%
    
  • Combine commands with &&, , , and ;:

    gitsh% commit && push
    
  • Make temporary modifications to your git configuration with gitsh config
    variables. These changes only affect git commands issued 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 support+george+mike@thoughtbot.com
    gitsh% commit -m 'We are pair programming'
    
  • Access information about your repository with magic variables like
    $_rebase_base, $_merge_base and $_prior.

    gitsh% rebase master
    CONFLICT (content): Merge conflict in db/schema.rb
    gitsh% checkout $_rebase_base -- db/schema
    gitsh% !rake db:schema:load db:migrate
    
  • 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

See the installation guide for install instructions for other
operating systems.

Contributing to gitsh

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

Similar projects

  • git-sh - A customised bash shell with a Git prompt, aliases, and
    completion.
  • gitsh - A simple Git shell written in Perl.
  • repl - Wraps any program with subcommands in a REPL.

License

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

About thoughtbot

thoughtbot

Created, maintained and funded by thoughtbot.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software!
See our other projects.
We are available for hire.

主要指标

概览
名称与所有者thoughtbot/gitsh
主编程语言Ruby
编程语言Ruby (语言数: 5)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2013-11-02 09:33:38
推送于2024-04-07 06:49:47
最后一次提交2019-12-16 08:26:11
发布数16
最新版本名称v0.14 (发布于 )
第一版名称v0.1 (发布于 )
用户参与
星数2k
关注者数63
派生数102
提交数403
已启用问题?
问题数179
打开的问题数32
拉请求数157
打开的拉请求数8
关闭的拉请求数46
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?