Set branch upstream
- Ngôn ngữ chính
- Go
- Star
- 1.5k
- Fork
- 70
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, go
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 68/100