Skip to content

Instantly share code, notes, and snippets.

View LixvYang's full-sized avatar

Larson LixvYang

View GitHub Profile
# =============================================
# Git Worktree 快速管理助手
# 用法:
# ga <branch-name> # 在平行目录创建新 worktree + 新分支,并自动 cd 进去
# gd # 删除当前 worktree 和对应分支(带确认)
#
# 依赖:
# - gum[](https://github.com/charmbracelet/gum) 用于美观的确认对话框
# - mise (可选,如果你用 mise 管理工具版本)
# =============================================