惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
腾讯CDC
博客园_首页
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
博客园 - 叶小钗

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Hands on with Three Git TUI Clients
2021-09-11 · via jdhao's digital space

If you are not accustomed to typing git commands on the command line, there are also some TUI clients for easing the use of git.

lazygit#

lazygit is a git tui client written in go. To install it on Linux:

wget https://github.com/jesseduffield/lazygit/releases/download/v0.28.2/lazygit_0.28.2_Linux_x86_64.tar.gz

mkdir -p $HOME/tools/lazygit
tar --directory=$HOME/tools/lazygit -xvf lazygit_0.28.2_Linux_x86_64.tar.gz

Add it to PATH:

export PATH=$HOME/tools/lazygit:$PATH

Lazygit comes with rich features and extensive key bindings.

gitui#

gitui is a similar git tui written in rust, which boasts excellent performance against other git tui clients. Install it on Linux:

wget https://github.com/extrawurst/gitui/releases/download/v0.16.2/gitui-linux-musl.tar.gz
mkdir -p $HOME/local/bin
tar --directory=$HOME/local/bin -xvf gitui-linux-musl.tar.gz

export PATH=$HOME/loca/bin:$PATH

gitui also has rich features. One issue to note is that it does not support using j and k to select next and previous item, which is a bit clusmy for Vim users like me.

tig#

tig is tiny tools written in C, which provides a git tui with basic features. We can install it from source:

wget https://github.com/jonas/tig/releases/download/tig-2.5.4/tig-2.5.4.tar.gz
tar xvf tig-2.5.4.tar.gz
cd tig-2.5.4
./configure --prefix=$HOME/local
make -j 8 && make install

tig will be installed under $HOME/local/bin.

Tig is tiny and quite powerful and suitable for simple use cases.