Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

On private development branches, favour rebase over merge, and encourage rewriting history for a clean tree

Đang mở
#2 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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:

  1. 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 --rebase instead of merge to keep the history linear
  2. Be comfortable to rewrite history by using rebase with squash/fixup/git commit --amend when solving linting/styling/typo problems, instead of have several "fix typo" or "minor fix" commits hanging around
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.