gitui README

The project's README from github.com/gitui-org/gitui. As one markdown file: README.md.

CI crates MIT UNSAFE TWEET dep_status discord

GitUI provides you with the comfort of a git GUI but right in your terminal

Table of Contents

  1. Features
  2. Motivation
  3. Benchmarks
  4. Roadmap
  5. Limitations
  6. Installation
  7. Build
  8. FAQs
  9. Diagnostics
  10. Color Theme
  11. Key Bindings
  12. Sponsoring
  13. Inspiration
  14. Contributing
  15. Contributors

1. Features Top ▲

2. Motivation Top ▲

I do most of my git work in a terminal but I frequently found myself using git GUIs for some use-cases like: index, commit, diff, stash, blame and log.

Unfortunately popular git GUIs all fail on giant repositories or become unresponsive and unusable.

GitUI provides you with the user experience and comfort of a git GUI but right in your terminal while being portable, fast, free and opensource.

3. Benchmarks Top ▲

For a RustBerlin meetup presentation (slides) I compared lazygit,tig and gitui by parsing the entire Linux git repository (which contains over 900k commits):

Time Memory (GB) Binary (MB) Freezes Crashes
gitui 24 s ✅ 0.17 ✅ 10 No ✅ No ✅
lazygit 57 s 2.6 25 Yes Sometimes
tig 4 m 20 s 1.3 0.6 ✅ Sometimes No ✅

4. Road(map) to 1.0 Top ▲

These are the high level goals before calling out 1.0:

5. Known Limitations Top ▲

Currently, this tool does not fully substitute the git shell, however both tools work well in tandem.

The priorities for gitui are on features that are making me mad when done on the git shell, like stashing, staging lines or hunks. Eventually, I will be able to work on making gitui a one stop solution - but for that I need help - this is just a spare time project for now.

All support is welcomed! Sponsors as well! ❤️

6. Installation Top ▲

GitUI is in beta and may contain bugs and missing features. However, for personal use it is reasonably stable and is being used while developing itself.

Packaging status

Various Package Managers

Install Instructions
Arch Linux
pacman -S gitui
Fedora
sudo dnf install gitui
Gentoo

Available in dm9pZCAq overlay

sudo eselect repository enable dm9pZCAq
sudo emerge --sync dm9pZCAq
sudo emerge dev-vcs/gitui::dm9pZCAq
openSUSE
sudo zypper install gitui
Homebrew (macOS)
brew install gitui
MacPorts (macOS)
port install gitui
Winget (Windows)
winget install gitui
Scoop (Windows)
scoop install gitui
Chocolatey (Windows)
choco install gitui
Mise
mise use -g gitui@latest
Nix (Nix/NixOS)

Nixpkg

nix-env -iA nixpkgs.gitui

NixOS

nix-env -iA nixos.gitui
Termux (Android)
pkg install gitui
Anaconda
conda install -c conda-forge gitui

Release Binaries

Available for download in releases

Binaries available for:

Linux

All contain a single binary file

macOS

Windows

Nightly Builds

see NIGHTLIES.md

7. Build Top ▲

Requirements

Cargo Install

The simplest way to start playing around with gitui is to have cargo build and install it with cargo install gitui --locked. If you are not familiar with rust and cargo: Getting Started with Rust

Cargo Features

trace-libgit

enable libgit2 tracing

works if libgit2 built with -DENABLE_TRACE=ON

this feature enabled by default, to disable: cargo install --no-default-features

8. FAQs Top ▲

see FAQs page

9. Diagnostics Top ▲

To run with logging enabled run gitui -l.

This will log to:

10. Color Theme Top ▲

gitui should automatically work on both light and dark terminal themes.

However, you can customize everything to your liking: See Themes.

11. Key Bindings Top ▲

The key bindings can be customized: See Key Config on how to set them to vim-like bindings.

12. Sponsoring Top ▲

github

13. Inspiration Top ▲

14. Contributing Top ▲

See CONTRIBUTING.md.

15. Contributors Top ▲

Thanks goes to all the contributors that help make GitUI amazing! ❤️

Wanna become a co-maintainer? We are looking for you!

gitui (gitui-org/gitui)

Searching Database…

22.6K ·GitHub
这是干什么的?GitUI 是用 Rust 编写的一个速度极快的 git 终端界面:既有 git 图形界面的舒适体验,又完全在你的终端里运行。
它能取代 git 命令行吗,还是我仍然需要它?它是 git 命令行的补充而非替代,两者配合使用效果很好。GitUI 专注于那些在命令行里很麻烦的操作:贮藏(stash)、暂存单行或代码块。
使用它需要安装 Rust 或其他工具吗?日常使用不需要——发布的二进制文件都是单个文件(Windows 还有 .msi 安装包)。如果要从源码构建,则需要 Rust/cargo 1.88+、openssl、perl 5.12+ 和一个 C 编译器。
它有哪些 git 功能不支持?有:目前尚不支持 git-lfs,不支持稀疏仓库(sparse-repo),而且对于 https 远程仓库,你需要自己手动配置 git 的 credential.helper。
作者为什么不直接用现有的 git 图形界面,而要自己开发这个?他的大部分 git 工作都在终端完成,但在处理索引、提交、差异、贮藏、blame 和日志时总要去用图形界面——而流行的 git 图形界面在超大仓库上会卡死或出错。GitUI 的目标是在终端里提供图形界面的舒适体验,同时保持轻便、快速、免费和开源。
1.0 正式版发布前有什么计划?官方公布的 1.0 目标包括在日志(log)标签页中可视化分支结构,以及交互式变基(rebase)。在此之前,像 git-lfs 支持等功能仍在计划范围之外。
它能在 Android 或 ARM 设备上运行吗?可以——Android 有 Termux 软件包,发布的二进制文件除了 x86_64 外还覆盖 linux aarch64、arm 和 armv7。macOS 版本同时提供 Apple Silicon(arm64)和 Intel 两种构建。
如果程序运行异常,我该怎么抓取日志?运行 gitui -l。日志位置:macOS 为 $HOME/Library/Caches/gitui/gitui.log,Linux 为 $XDG_CACHE_HOME/gitui/gitui.log 或 $HOME/.cache/gitui/gitui.log,Windows 为 %LOCALAPPDATA%/gitui/gitui.log。
What are similar projects?zoxide, oh-my-posh, navi, yazi, diff-so-fancy, lazygit, onefetch, git-bug
Creator
gitui-org
Size
64.3 MB
Stars
22.6K
Age
6y
Commits · 90 Days