Branches Git میں آپ کو development کی main line سے علیحدہ ہو کر isolation میں کام کرنے دیتی ہیں — main code کو متاثر کیے بغیر۔ یہ lightweight ہیں اور Git workflows کے لیے central ہیں، parallel work اور محفوظ experimentation کو ممکن بناتے ہیں۔
Branch کیا ہے
A branch is a MOVABLE POINTER to a commit. The default is usually "main".
→ creating a branch = creating a new pointer (cheap/instant — not a copy of files)
→ commits on a branch advance that branch's pointer
→ branches let you work on different things in parallel, isolated from each other
Branches ہیں (صرف commits کی طرف اشارے، نقول نہیں) — تو branches بنانا اور switch کرنا تیز اور سستا ہے، یہی وجہ ہے کہ Git branching بہت استعمال ہوتی ہے۔
