[New Command Request] Add an option to pull from origin only, ignoring upstream
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách truy vết phần triển khai và phân tích đối số của gh classroom pull student-repos, sau đó xác định cách hành vi pull hiện tại xem xét origin và upstream. Xác định dạng mới -o và kiểm tra rằng nó thực hiện tương đương với git pull origin main mà không yêu cầu đồng bộ hóa với upstream.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
see #77
This is to avoid the error message:
failed to run gh: can't sync because there are diverging changes; use `--force` to overwrite the destination branch. error: exit status 1
when student repos aren't in sync with upstream (and may not need to be).
Describe the solution you'd like
As well as the current gh classroom pull student-repos command, a version including the -o flag so the execution is equivalent to git pull origin main instead of the default behaviour (which considers the entire fork chain, i.e. both origin and upstream).
Either:
gh classroom pull -o student-repos
or
gh classroom pull student-repos -o
Describe alternatives you've considered
I've both reverted to my pre-gh classroom scripts and to iterating with a simple shell script through the clones in the x-submissions directory to run git pull origin main.
Additional context
Add any other context or screenshots about the feature request here.
- Ngôn ngữ chính
- Go
- Star
- 126
- Fork
- 21
- Merge trung bình
- 25 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
bug go
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
genkit-ai/genkit#6761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug(backend): `make test-update` in backend/src/v2 fails because the --update flag was removedĐang mởready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
kubeflow/pipelines#14784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
trust: update-propagation-directive requires developer mode while add and remove do notCó thể đã có người làm @bhuvan-somisetty đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày