agri-branch

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

agri-branch

agri-branch

  1. 用
    git branch --show-current
    確認目前分支;不在
    main
    或
    develop
    就維持原分支並結束。
  2. 依工作內容取簡短、具體的分支名稱:新功能用
    feat/<branch-name>
    ,修正問題用
    fix/<branch-name>
    ,雜項調整用
    chore/<branch-name>
    。使用者指定名稱就沿用;無法判斷時先詢問。
  3. 用
    git branch --show-current
    確認已切換到新分支。
只負責開分支;提交、推送與建立 PR 由各自流程處理。
團隊 Gitflow 為
feat/*
/
fix/*
/
chore/*
→
develop
→
main
(正式發佈)。
  1. Use
    git branch --show-current
    to confirm the current branch; if it is not
    main
    or
    develop
    , remain on the current branch and finish.
  2. Choose a short, specific branch name based on the work: use
    feat/<branch-name>
    for new features,
    fix/<branch-name>
    for bug fixes, and
    chore/<branch-name>
    for miscellaneous changes. Use the name specified by the user; if it cannot be determined, ask first.
  3. Use
    git branch --show-current
    to confirm that the new branch has been switched to.
This process is only responsible for creating branches; commits, pushes, and PR creation are handled by their respective workflows.
The team's Gitflow is
feat/*
/
fix/*
/
chore/*
→
develop
→
main
(production release).