
यह कोर्स आपको modern development की सबसे ज़रूरी skill सिखाता है—version control। इसमें आप Git के core commands, real-world GitHub workflow (branches, pull requests, reviews) और open-source contribution की basic understanding पाएँगे। 1–2 हफ्तों में fast, practical और industry-ready skill build करने पर फोकस है। 🚀
इस chapter में हम Git के सबसे ज़रूरी commands सीखेंगे — git status, git add, git commit, और git log। ये commands हर real project (जैसे UdaanPath) में daily use होते हैं।
Git में code सीधे save नहीं होता। पहले changes track होते हैं, फिर staging में जाते हैं और finally repository में commit होते हैं।
मान लीजिए आप UdaanPath के लिए एक नया course page बना रहे हैं — हर step Git आपको safely आगे बढ़ने देता है।
git status command यह बताती है कि:
git status
UdaanPath Example:
आपने courses/git-basics.html file edit की।
git status आपको दिखाएगा कि file modified है।
Git में commit करने से पहले यह बताना पड़ता है कि
कौन से changes save करने हैं।
यही काम git add करता है।
git add courses/git-basics.html
सभी files एक साथ stage करने के लिए:
git add .
UdaanPath Example:
आपने course description, thumbnail और syllabus तीनों update किए।
अब आप तय करते हैं कि ये changes ready हैं — तो git add . करते हैं।
git commit एक permanent snapshot बनाता है।
इसे ऐसे समझिए जैसे आपने project का “safe point” बना लिया हो।
git commit -m "Add Git & GitHub course introduction page"
Good Commit Message क्यों ज़रूरी है?
❌ Bad message: update
✅ Good message: Add Core Git Commands chapter content
git log आपके project की पूरी history दिखाता है —
किसने कब क्या change किया।
git log
इसमें आपको दिखेगा:
UdaanPath Example:
अगर किसी course page में bug आ जाए, तो
git log से पता चलता है कि वो change कब हुआ।
git status git add . git commit -m "Update UdaanPath Git course content"
यही flow आप हर दिन use करेंगे — चाहे project छोटा हो या company-level।
git status = situation awarenessgit add = select changesgit commit = save progressgit log = project memorygit status से changes check करेंgit log से commit history देखेंअगले chapter में हम सीखेंगे कि Git में branches कैसे बनाते हैं और बिना डर main code के experiment कैसे करते हैं।