On private development branches, favour rebase over merge, and encourage rewriting history for a clean tree
Đang mở
@cmnrd đang làm issue này rồi.
Từ ngày 14/6/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
I've complained in the past on Zulip about the cleanliness of our git history trees.
Since our contributing guideline is rather indicative, I think it might be worth it to outline some suggestions to make our git history cleaner, such as:
- If working on a branch which nobody is actively using in a productive environment and pulling from the main branch is common, prefer
git pull --rebaseinstead of merge to keep the history linear - Be comfortable to rewrite history by using
rebasewithsquash/fixup/git commit --amendwhen solving linting/styling/typo problems, instead of have several "fix typo" or "minor fix" commits hanging around - Configure pre-commit hooks and ensure each commit is linted, instead of linting everything in one commit
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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.