github / github/gh-stack

Set branch upstream

未關閉
#331 1 則留言 12 個 reaction 已指派 0 人 在 GitHub 檢視
bug topic: cli - general
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。