Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoughtbot/gitsh
An interactive shell for git
https://github.com/thoughtbot/gitsh
Last synced: about 1 month ago
JSON representation
An interactive shell for git
- Host: GitHub
- URL: https://github.com/thoughtbot/gitsh
- Owner: thoughtbot
- License: bsd-3-clause
- Created: 2013-11-02T09:33:38.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T06:49:47.000Z (7 months ago)
- Last Synced: 2024-09-27T04:02:27.065Z (about 1 month ago)
- Language: Ruby
- Homepage: https://thoughtbot.com
- Size: 6.02 MB
- Stars: 1,953
- Watchers: 64
- Forks: 106
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ruby-cli-apps - gitsh - Runs an interactive shell for git. (Awesome Ruby CLIs / Workflow)
- awesome-starred - thoughtbot/gitsh - An interactive shell for git (others)
README
#
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](https://travis-ci.org/thoughtbot/gitsh.png?branch=master)](https://travis-ci.org/thoughtbot/gitsh)
[![Code Climate](https://codeclimate.com/github/thoughtbot/gitsh.png)](https://codeclimate.com/github/thoughtbot/gitsh)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)[our video on Upcase]: https://upcase.com/videos/gitsh?utm_source=github&utm_medium=open-source&utm_campaign=gitsh
## 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% ctrl-d
sh$
* 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 [email protected]
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`][hub] and [`gh`][gh]:
sh$ gitsh --git $(which gh)
gitsh% pull-request## Installing gitsh
* macOS, via Homebrew:
brew tap thoughtbot/formulae
brew install gitsh* Arch Linux: https://github.com/thoughtbot/gitsh/blob/master/arch/PKGBUILD
* OpenBSD -current:
sudo pkg_add gitsh
See the [installation guide][INSTALL] for install instructions for other
operating systems.## Contributing to gitsh
Pull requests are very welcome. See the [contributing guide][CONTRIBUTING] 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.[hub]: http://hub.github.com/
[gh]: https://github.com/jingweno/gh
[INSTALL]: https://github.com/thoughtbot/gitsh/blob/master/INSTALL
[CONTRIBUTING]: https://github.com/thoughtbot/gitsh/blob/master/CONTRIBUTING.md
[LICENSE]: https://github.com/thoughtbot/gitsh/blob/master/LICENSE
[git-sh]: https://github.com/rtomayko/git-sh
[gitsh]: https://github.com/caglar/gitsh
[repl]: https://github.com/defunkt/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][LICENSE] file.## About thoughtbot
![thoughtbot](https://thoughtbot.com/brand_assets/93:44.svg)
Created, maintained and funded by [thoughtbot][team].
The names and logos for thoughtbot are trademarks of thoughtbot, inc.[team]: https://thoughtbot.com?utm_source=github
We love open source software!
See [our other projects][community].
We are [available for hire][hire].[community]: https://thoughtbot.com/tools?utm_source=github
[hire]: https://thoughtbot.com/hire-us?utm_source=github