Staging area (ज्याला index असेही म्हणतात) हे आपल्या working directory आणि repository यांच्यामध्ये एक मध्यवर्ती क्षेत्र आहे — जेथे आप तयार करता कोणते बदल पुढील commit मध्ये जाणार आहेत. हे तुम्हाला commits अचूकपणे तयार करू देते, अगदी काय समाविष्ट करायचे हे निवडून.
Git चे तीन क्षेत्र
WORKING DIRECTORY → your actual files (where you edit)
│ git add
▼
STAGING AREA (index) → changes PREPARED for the next commit (a staging zone)
│ git commit
▼
REPOSITORY (.git) → committed snapshots (the permanent history)
बदल प्रवाह: आप फाईल edit करता (working directory), निवडलेले बदल stage करते (staging area), आणि staged बदल एक commit म्हणून रेकॉर्ड करते (repository).
