ਬ੍ਰਾਂਚ Git ਵਿੱਚ ਤੁਹਾਨੂੰ ਵਿਕਾਸ ਦੀ ਮੁੱਖ ਲਾਈਨ ਤੋਂ ਹਟ ਕੇ ਅਲੱਗ-ਥਲੱਗ ਵਿੱਚ ਕੰਮ ਕਰਨ ਲਈ ਦਿੰਦੀ ਹੈ — ਮੁੱਖ ਕੋਡ ਨੂੰ ਪ੍ਰਭਾਵਿਤ ਕੀਤੇ ਬਿਨਾਂ। ਇਹ ਮਲਬਿਨ ਅਤੇ Git ਵਰਕਫਲੋਅ ਦਾ ਕੇਂਦ੍ਰੀ ਅੰਗ ਹੈ, ਜੋ ਸਮਾਨਾਂਤਰ ਕਾਮ ਅਤੇ ਸੁਰੱਖਿਅਤ ਪ੍ਰਯੋਗ ਨੂੰ ਸਮਰੱਥ ਬਣਾਉਂਦੀ ਹੈ।
ਬ੍ਰਾਂਚ ਕੀ ਹੈ
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
ਬ੍ਰਾਂਚ ਹਨ (commit ਵੱਲ ਸਿਰਫ਼ ਸੰਕੇਤ, ਕਾਪੀ ਨਹੀਂ) — ਇਸਲਈ ਬ੍ਰਾਂਚ ਬਣਾਨਾ ਅਤੇ ਸਵਿੱਚ ਕਰਨਾ ਤੇਜ਼ ਅਤੇ ਸਸਤਾ ਹੈ, ਇਸਲਈ Git ਬ੍ਰਾਂਚਿੰਗ ਬਹੁਤ ਵਰਤੀ ਜਾਂਦੀ ਹੈ।
