Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isacikgoz/gitin
commit/branch/workdir explorer for git
https://github.com/isacikgoz/gitin
cli commandline git prompt
Last synced: 21 days ago
JSON representation
commit/branch/workdir explorer for git
- Host: GitHub
- URL: https://github.com/isacikgoz/gitin
- Owner: isacikgoz
- License: bsd-3-clause
- Created: 2019-01-25T06:17:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T12:32:03.000Z (over 1 year ago)
- Last Synced: 2024-10-01T20:41:48.609Z (about 1 month ago)
- Topics: cli, commandline, git, prompt
- Language: Go
- Homepage:
- Size: 3.29 MB
- Stars: 1,861
- Watchers: 16
- Forks: 39
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-starred-test - isacikgoz/gitin - commit/branch/workdir explorer for git (Go)
- awesome-repositories - isacikgoz/gitin
- go-awesome - gitin - Commit/Branch/Status Explorer for Git (Open source library / Git)
- awesome-list - gitin
- jimsghstars - isacikgoz/gitin - commit/branch/workdir explorer for git (Go)
README
![](https://img.shields.io/github/actions/workflow/status/isacikgoz/gitin/build.yml) ![](https://img.shields.io/github/release-pre/isacikgoz/gitin.svg?style=flat)
# gitin
`gitin` is a commit/branch/status explorer for `git`
gitin is a minimalist tool that lets you explore a git repository from the command line. You can search from commits, inspect individual files and changes in the commits. It is an alternative and interactive way to explore the commit history. Also, you can explore your current state by investigating diffs, stage your changes and commit them.
## Features
- Fuzzy search (type `/` to start a search after running `gitin `)
- Interactive stage and see the diff of files (`gitin status` then press `enter` to see diff or `space` to stage)
- Commit/amend changes (`gitin status` then press `c` to commit or `m` to amend)
- Interactive hunk staging (`gitin status` then press `p`)
- Explore branches with useful filter options (e.g. `gitin branch` press `enter` to checkout)
- Convenient UX and minimalist design
- See more options by running `gitin --help`, also you can get help for individual subcommands (e.g. `gitin log --help`)## Installation
- Linux and macOS are supported.
- Download latest release from [here](https://github.com/isacikgoz/gitin/releases)
- **Or**, manually download it with `go get -d github.com/isacikgoz/gitin/cmd/gitin`
- `cd` into `$GOPATH/src/github.com/isacikgoz/gitin`
- build with `make install` (`cmake` and `pkg-config` are required, also note that git2go will be cloned and built)### Mac/Linux using brew
The tap is recently moved to new repo, so if you added the older one (isacikgoz/gitin), consider removing it and adding the new one.
```sh
brew tap isacikgoz/taps
brew install gitin
```## Usage
```sh
usage: gitin [] [ ...]Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-v, --version Show application version.Commands:
help [...]
Show help.log
Show commit logs.status
Show working-tree status. Also stage and commit changes.branch
Show list of branches.Environment Variables:
GITIN_LINESIZE=
GITIN_STARTINSEARCH=
GITIN_VIMKEYS=Press ? for controls while application is running.
```
## Configure
- To set the line size `export GITIN_LINESIZE=5`
- To set always start in search mode `GITIN_STARTINSEARCH=true`
- To disable colors `GITIN_DISABLECOLOR=true`
- To disable h,j,k,l for nav `GITIN_VIMKEYS=false`## Development Requirements
- **Running with static linking is highly recommended.**
- Clone the project and `cd` into it.
- Run `make build-libgit2` (this will satisfy the replace rule in the `go.mod` file)
- You can run the project with `go run --tags static cmd/gitin/main.go --help` command## Contribution
- Contributions are welcome. If you like to please refer to [Contribution Guidelines](/CONTRIBUTING.md)
- Bug reports should include descriptive steps to reproduce so that maintainers can easily understand the actual problem
- Feature requests are welcome, ask for anything that seems appropriate## Credits
See the [credits page](https://github.com/isacikgoz/gitin/wiki/Credits)
## License
[BSD-3-Clause](/LICENSE)