Skip to content
项目

davvid/gcd has 31 GitHub stars and 1 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-21 09:08 UTC. Last push 2026-08-05.

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

Git worktree navigator

开发工具

README.md

原文

gcd - Git worktree navigator

gcd lets you quickly navigate to Git worktrees on your filesystem.

cdg lets you quickly navigate to directories within your current worktree.

Preview

Dependencies

  • eza (required)

  • fzf (required)

  • fd (optional)

sudo apt install eza fzf fd-find

Installation

  • Clone this repository to ~/.config/git/gcd:
mkdir -p ~/.config/git
git clone https://gitlab.com/davvid/gcd.git ~/.config/git/gcd
  • Edit your ~/.bashrc or ~/.zshrc and add this snippet:
if test -f ~/.config/git/gcd/gcd.sh
then
    source ~/.config/git/gcd/gcd.sh
fi

Configuration

gcd searches for worktrees in $HOME by default.

gcd can be configured to search in other directories by setting the gcd.paths git config variable:

git config --global --add gcd.paths '$HOME/src'
git config --global --add gcd.paths '$HOME/dev'

$VARIABLES are expanded by gcd so that you can reuse your git configuration in more scenarios.

gcd traverses two levels deep into the configured paths by default. You can configure gcd to search deeper by setting the gcd.depth variable.

git config --global gcd.depth 3

NOTE: higher depth values cause more disk IO and can have an impact on performance.

探索相关项目

加载中…