← Back to Git Course | Chapter 2: Basic Commands | Lesson 6 of 18

Git help Command

git help एक board game के साथ आने वाली instruction booklet जैसा है। किसी भी command के बारे में पूछें और यह explain करता है कि यह कैसे काम करता है और कौन से options exist करते हैं।
Syntax
bash
git help command_name
git command_name -h

git help क्या है?

git help Git का built-in manual system है -- यह किसी भी command के लिए detailed documentation खोलता है, हर available flag और usage example सहित, बिना आपको कभी terminal छोड़ने या online search करने की ज़रूरत के।

उदाहरण: What is git help?

bash
git help

Command Manuals Access करना

git help <command> चलाना (उदाहरण के लिए git help init) उस command का पूरा manual page खोलता है, वही detailed reference जो आपको Git की official documentation में मिलेगा, सीधे आपके terminal में पढ़ने के लिए formatted।

उदाहरण: Accessing Command Manuals

bash
git help init

Compact Shorthand Help (-h)

जब आपको पूरे manual के बजाय किसी command के flags का सिर्फ एक quick reminder चाहिए, -h add करना (जैसे git init -h) पूरा man page खोलने के बजाय एक छोटा, scannable summary print करता है।

उदाहरण: Compact Shorthand Help (-h)

bash
git init -h

सभी Available Commands List करना

git help --all आपके system पर installed हर single Git command list करता है, कई obscure वाले सहित जिन्हें आप शायद ही कभी इस्तेमाल करेंगे -- ज़्यादातर लोगों के रोज़ इस्तेमाल किए गए दर्जन commands से आगे Git के toolkit का actual size discover करने का एक उपयोगी तरीका।

उदाहरण: Listing All Available Commands

bash
git help --all

Online Git Help Guides

built-in docs से आगे, community guides और troubleshooting walkthroughs (cookiescursor.com/git-help पर मौजूद सहित) अक्सर एक specific real-world problem solve करने के लिए formal manual pages से तेज़ हैं, जो workflow के बजाय syntax पर focused हैं।

उदाहरण: Online Git Help Guides

bash
# See cookiescursor.com/git-help for community guides and walkthroughs
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. git help commit चलाना और pager से confused हो जाना, यह न जानते हुए कि quit करने के लिए q press करना है।
  2. git help इस्तेमाल करना जब एक short reminder काफी हो, जहाँ git commit -h options की एक compact list print करता है।
  3. command को git help git-commit -m की तरह type करना, जबकि topic सिर्फ git help commit जैसा एक command name लेता है।

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.