ਟ੍ਰੰਕ-ਆਧਾਰਿਤ ਵਿਕਾਸ ਇੱਕ ਸ਼ਾਖਾ ਰਣਨੀਤੀ ਹੈ ਜਿੱਥੇ ਡਿਵੈਲਪਰ ਛੋਟੀ ਬਦਲਾਵਾਂ ਨੂੰ ਅਕਸਰ ਇੱਕ ਮੁੱਖ ਸ਼ਾਖਾ (ਟ੍ਰੰਕ) ਵਿੱਚ ਏਕੀਕਰਤ ਕਰਦੇ ਹਨ, ਬਹੁਤ ਛੋਟੀ-ਜੀਵਨ ਸ਼ਾਖਾਵਾਂ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋਏ (ਜਾਂ ਸਿੱਧਾ ਕਮਿਟ ਕਰਦੇ ਹੋਏ)। ਇਹ ਉੱਚ-ਪ੍ਰਦਰਸ਼ਕ CI/CD ਨਾਲ ਮਜ਼ਬੂਤੀ ਨਾਲ ਜੁੜਿਆ ਹੋਇਆ ਹੈ ਕਿਉਂਕਿ ਇਹ ਨਿਰੰਤਰ ਏਕੀਕਰਣ ਨੂੰ ਵੱਧ ਤੋਂ ਵੱਧ ਕਰਦਾ ਹੈ।
ਟ੍ਰੰਕ-ਆਧਾਰਿਤ ਵਿਕਾਸ ਕੀ ਹੈ
Developers commit small, frequent changes to a SINGLE shared branch (trunk/main):
→ very SHORT-LIVED branches (merged within hours or a day) — or commit directly
→ integrate continuously (multiple times a day) into trunk
→ trunk is kept always RELEASABLE (working, deployable)
→ vs long-lived feature branches that diverge for days/weeks before merging.
