管理堆叠的 Git 分支
git-spice 是一个用于堆叠 Git 分支的工具。 它允许您管理和浏览分支堆栈, 方便地对它们进行修改和重新基准化, 并创建 GitHub、Bitbucket、Gitea 或 Forgejo 的拉取请求 或从他们处合并请求 GitLab。 请参阅 以了解更多详细信息。 使用方式大致如下:
# Stack a branch on top of the current branch.
$ gs branch create feat1
# Stack another branch on top of feat1.
$ gs branch create feat2
# Submit pull requests for feat1 and feat2.
$ gs stack submit
# Pull latest changes from the remote repository
# and delete merged branches.
$ gs repo sync
# Restack branches on top of the latest changes.
$ gs stack restack或者等价地,使用 CLI 缩写:
$ gs bc feat1 # branch create feat1
$ gs bc feat2 # branch create feat2
$ gs ss # stack submit
$ gs rs # repo sync
$ gs sr # stack restack暂无开放 Issues,或尚未同步最近议题。