मैं एक ही समस्या (components/dashboard/js-dev/training/index.js
किसी कारण से ट्रैक न हो गया था) था, इसलिए मैं निम्नलिखित किया:
$ git check-ignore -v components/dashboard/js-dev/training/index.js
$ (gave me nothing)
$ git check-ignore -v components/dashboard/js-dev/training/
$ /Users/User/.config/git/ignore:23: components/dashboard/js-dev/training/
फिर भी, मैं यह काफी अजीब हो पाया है, तो फिर मैं एक दृष्टि डाली
(this is line 1)
# Automatically created by GitHub for Mac
# To make edits, delete these initial comments, or else your changes may be lost!
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
और यह पता चला है कि लाइन 23 वास्तव में .com.apple.timemachine.donotpresent
और # Directories potentially created on remote AFP share
के बीच एक, दूसरे शब्दों में है, यह एक पूरी तरह से खाली लाइन था: इस फाइल, /Users/User/.config/git/ignore
, और कम से इस यह कैसा लग रहा है!
# Automatically created by GitHub for Mac
# To make edits, delete these initial comments, or else your changes may be lost!
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
मैं git status
चलाने के लिए, और मुझे लगता है कि यह अब components/dashboard/js-dev/training/
उठा रहा है नोटिस:
मैं तो मेरी फाइल इस तरह दिख रही सभी अतिरिक्त नई-पंक्तियों को हटाने की कोशिश की। मैं git add components/dashboard/js-dev/training/
चलाता हूं, और सभी ठीक काम करता है।
आशा है कि यह किसी की मदद करे - इस मुद्दे ने मुझे अनावश्यक रूप से लंबे समय तक अटक गया।
गिट फ़ाइल में परिवर्तन नहीं मिला है जिसमें आपने पहले से ही इसे जोड़ा और प्रतिबद्ध किया है? या गिट का पता नहीं चला है कि फ़ाइल तब तक मौजूद है जब तक कि नाम बदल नहीं जाता है? – JoePasq
पहले "गिट एड" का प्रयास करें। और फिर गिट स्थिति की जांच करें। अगर यह काम नहीं करता है, तो उस फ़ाइल निर्देशिका पर नेविगेट करें और "git add style.css" आज़माएं और एक और गिट स्थिति करें ... मुझे लगता है कि यह काम करेगा – Kristian
फ़ाइल पहले ही जोड़ दी गई है और अतीत में प्रतिबद्ध है। लेकिन अभी परिवर्तनों का पता नहीं लगा है, भले ही मैं फ़ाइल – jonfer