[gh classroom clone --mirror] Clone repositories using mirror behavior to have all branches locally
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu với lệnh hiện có gh classroom clone và so sánh cách xử lý các cờ clone của lệnh này với hành vi được ghi tài liệu của gh repo clone ... -- --depth=1. Xác nhận rằng tùy chọn --mirror được yêu cầu tạo ra tương đương với git clone --mirror cho các repository của sinh viên và giữ lại tất cả các branch cục bộ.
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.
When cloning student-repos repositories for archives purpose it is necessary to get all the branches locally so that the content on Github can be removed safely.
Similarly if the assignment tolerate or require to provide multiple branches then it would benefit of having all branches locally when cloning repositories instead of pulling them afterwards from remote repository.
Describe the solution you'd like
When using the existing gh classroom clone command the possibility to add --mirror option which would reflect the usage of git clone --mirror https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--mirrorcode
Describe alternatives you've considered
Scripting outside of gh cli using git directly to clone the repositories.
Additional context
Given that the underlying gh cli support adding git flags on the command line for clone operation it could be resolved by exposing this feature in gh-classroom cli. This solution would also resolves https://github.com/github/gh-classroom/issues/15
https://cli.github.com/manual/gh_repo_clone
# Clone a repository with additional git clone flags
$ gh repo clone cli/cli -- --depth=1
- 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
cli: cav scene save treats unknown flags before path (e.g. --timeout) as the output filenameĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
product/backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TencentBlueKing/bk-nodemgr#3645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
modelcontextprotocol/go-sdk#1387 ·
Maintainer thường phản hồi trong vòng 1 ngày