अनदेखी नहीं कोई फर्क नहीं पड़ता कि मैं क्या .gitignore
में डाल रहा नहीं प्राप्त Git नीचे UserInterfaceState.xcuserstate
फ़ाइल की अनदेखी करने के कर सकते हैं:gitignore फ़ाइल
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
modified: CalFoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/UserInterfaceState.xcuserstate
मैं उपयोग कर रहा हूँ/संपादन this post पर सूचीबद्ध .gitignore
फ़ाइल। मैंने सटीक पथनाम सहित पैटर्न से मेल खाने के लिए सब कुछ करने की कोशिश की: CalFoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/UserInterfaceState.xcuserstate
कोई फायदा नहीं हुआ।
यह विशेष समस्या वर्कफ़्लो से उत्पन्न होती है जहां प्रारंभिक गिट रेपो बनाने के लिए एक्सकोड का उपयोग किया जाता है और here से फ़ाइल को बाद में जोड़ा जाता है। गिट में पिछली ट्रैक की गई फ़ाइलों को अनदेखा करने का एक और सामान्य उत्तर this question से पाया जा सकता है (मुझे लगता है कि मुझे इस पोस्ट को मेरी खोज में कभी नहीं मिला क्योंकि उसके शीर्षक में "गिटिनोरोर" नहीं था)।
संभावित डुप्लिकेट [गिट में फ़ाइल में परिवर्तनों को ट्रैक करना और अनदेखा करना] [http://stackoverflow.com/questions/936249/stop-tracking-and-ignore-changes-to-a-file-in-git) – Unicornist
@Unicornist एक डुप्लिकेट नहीं है - मैं चाहता हूं कि एक विशिष्ट फ़ाइल हटा दी जाए और अनदेखा * हर जगह * जबकि दूसरा प्रश्न कुछ फाइलों को विश्व स्तर पर ट्रैक नहीं करना चाहता। – wcochran