Git में branches आपको विकास की मुख्य धारा से अलग होकर किसी चीज़ पर अलगाव में काम करने देती हैं — मुख्य कोड को प्रभावित किए बिना। ये हल्की हैं और Git workflows के केंद्र में हैं, जो समानांतर काम और सुरक्षित प्रयोग को सक्षम बनाती हैं।
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 के लिए pointers, copies नहीं) — इसलिए branches बनाना और बदलना तेज़ और सस्ता है, यही वजह है कि Git branching का भरपूर इस्तेमाल होता है।
