https://github.com/yasukotelin/gitone
gitone is simple git tree viewer TUI application!
https://github.com/yasukotelin/gitone
git go tui tview
Last synced: 4 months ago
JSON representation
gitone is simple git tree viewer TUI application!
- Host: GitHub
- URL: https://github.com/yasukotelin/gitone
- Owner: yasukotelin
- Created: 2020-01-29T15:08:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T03:39:56.000Z (over 6 years ago)
- Last Synced: 2025-08-15T04:23:54.500Z (10 months ago)
- Topics: git, go, tui, tview
- Language: Go
- Size: 45 MB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitone
gitone is simple git tree viwer in TUI(text user interface) application!
This app is inspired [tig](https://github.com/jonas/tig) and [GitUp](https://github.com/git-up/GitUp).
Supported macOS, Linux and Windows.


## Requirement
- Go >= 1.11
- git
- less
## Installation
### go get
This uses the Go modules. Thus you have to use `go get` with `GO111MODULE=on`.
```
GO111MODULE=on go get -u github.com/yasukotelin/gitone
```
### From source
If you don't want to use `go get`, you can install from source easily.
```
git clone https://github.com/yasukotelin/gitone.git
cd gitone
go install
```
## Usage
This app only displays git logs. And when you input the enter or space on the commit hash, this will run `git show` with less command.
### Key
gitone offers simple key bindings and also like `less` key bindigs.
| Key1 | Key2 | Key3 | Motion |
|--------------|----------|------|-------------------------------------------------|
| Enter | Space | | execute the `git show` with less command |
| Ctrl + Space | s | | execute the `git show --stat` with less commadn |
| q | Ctrl + c | Esc | app stop (when on the git log) |
| q | | | Back to git log (when on the `git show`) |
| Down key | j | | Cursor down |
| Up key | k | | Cursor up |
| Home key | g | | Jump to top line |
| End key | G | | Jump to bottom line |
| PgDn key | Ctrl + d | | down to 5 line |
| pgUp key | Ctrl + u | | up to 5 line |
### Theme
This app prepares a few themes for background dark or light users.
#### dark
dark is default theme.
```
gitone --theme=dark
```

#### light
```
gitone --theme=light
```

#### solid dark
```
gitone --theme=soliddark
```

#### solid light
```
gitone --theme=solidlight
```

## Windows
This app can be used from windows.
If you want to run on the git bash, you have to add `winpty` like a below.
```
winpty gitone
```
## Author
yasukotelin