Set branch upstream
- 主要语言
- Go
- 星标
- 1.5k
- 派生
- 70
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 7
描述
Many tools expect to be able to find the associated upstream for a given branch; `gh stack` currently manages that internally.
When one does `gh stack init some-branch`, then at such time as `gh stack` actually pushes the branch to `origin`, it should do the equivalent of `git push --set-upstream origin some-branch` in order to create the association.
This lets the user push future changes with just `git push` (and check for updates with `git pull`), as well as letting `git status` show relative differences.
贡献指南
调研方向
Trace the `gh stack init` and push flow in the Go CLI, starting where a branch is pushed to `origin`. Confirm the resulting behavior with a stacked branch: the first push should establish its upstream, and subsequent `git push`, `git pull`, and `git status` commands should use or report that association.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, go
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100