विज्ञापन

क्रिप्टो एक्सचेंज बोनस पाएँ

सिर्फ़ साइन अप करने पर मिलने वाले बोनस। शर्तें हर एक्सचेंज की घोषणा से ज्यों की त्यों ली गई हैं।

git show

git

इस्तेमाल

git show [<object>|<commit>:<path>]

एक commit को उसके संदेश और diff के साथ दिखाता है; <commit>:<path> लिखने पर फ़ाइल का पुराना रूप working copy छेड़े बिना निकल आता है।

आम विकल्प

विकल्पअर्थ
--statfile summary instead of the full patch
--name-onlylist the paths the commit touched
-smessage only, no diff
<commit>:<path>print the file as it was in that commit
--pretty=fullershow author and committer dates separately

उदाहरण

git show HEAD

the message and diff of the last commit

git show HEAD~2:src/app.ts

prints an old version of a file without touching your copy

git show --stat v1.2.0

what the tagged commit changed, file by file

उलझन यह है कि पीछे लौटने के कई रूप हैं — ब्रांच का इशारा हटाना और उलटने वाला कमिट जोड़ना एक बात नहीं।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Qgit show क्या करता है?

एक commit को उसके संदेश और diff के साथ दिखाता है; <commit>:<path> लिखने पर फ़ाइल का पुराना रूप working copy छेड़े बिना निकल आता है।

Qइसे कैसे लिखें?

git show [<object>|<commit>:<path>] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Qकितने विकल्प जानने लायक़ हैं?

यहाँ 5 दिए हैं; पूरी सूची man git में है। यह कमांड git में आती है।

मिलती-जुलती कमांड

man पेज: man git-show