github / github/gh-stack

Set branch upstream

Offen
#331 1 Kommentar 12 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug topic: cli - general
Vorherrschende Sprache
Go
Sterne
1.5k
Forks
70
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, go
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.