git - .gitignore exclude folder with files but include subdirectory -


मेरे पास ऐसे फ़ोल्डर्स हैं:

  /foo/one.txt / foo / bar /two.txt /foo/other/three.txt   

मैं सबफ़ोल्डर / फ़ू / बार / को छोड़कर फ़ोल्डर / फ़ू में सभी चीजों को बाहर करना चाहता हूं। मैं यह कैसे करूँ?

इस के साथ। गिटग्नोर मैंने "अन्य" सबफ़ोल्डर को बाहर करने में कामयाब रहा है, लेकिन फ़ाइल "one.txt" अभी भी शामिल है।

  / Foo / *! / Foo / bar /    

ऐसा हो सकता है कि .gitignore अब काम कर रहा है कि आप सामान्य समस्या से पीड़ित हैं जो कि सूचकांक से एक ट्रैक की गई फ़ाइल को निकालने की ज़रूरत है जो अब जीटग्नॉर में है

वह है, निकालने के लिए git rm & lt; file & gt; का उपयोग करें / सुनिश्चित करें कि यह अनुक्रमणिका में नहीं है।

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

javascript - Making the first column of a table fixed on horizontal scroll -