2014-09-30 36 views
-1

當我嘗試使用內置RubyMine git提交對項目的更改時,添加和git |提交選項我不斷收到致命錯誤,如:如何停止RubyMine在git commit上給出pathspec錯誤

Error:error: pathspec 'features/authentication/administrator_logs_in.feature' did not match any file(s) known to git. error: pathspec 'features/authentication/modeller_logs_in.feature' did not match any file(s) known to git. error: pathspec 'features/authentication/forecaster_logs_in.feature' did not match any file(s) known to git. error: pathspec 'features/authentication/guest_logs_in.feature' did not match any file(s) known to git. error: pathspec 'features/authentication/data_manager_logs_in.feature' did not match any file(s) known to git. during executing git commit --only -F C:\Users\Tim\AppData\Local\Temp\git-commit-msg-6533175276977325116.txt -- app/models/country.rb features/region_management/delete_region.feature app/views/regions/new.html.haml features/region_classifier_management/create_region_classifier.feature .idea/tf.iml config/breadcrumbs.rb app/controllers/countries_controller.rb

...和整個負載更像這樣。如果我打git |再次提交它(通常)工作得很好。怎麼回事,我該如何解決?

+0

呃,爲什麼downvote,鄉親? – digitig 2014-10-01 12:30:55

回答

1

好吧,我追查下來。儘管錯誤報告爲我提供了像'features/authentication/administrator_logs_in.feature'這樣的路徑,但git status將違規路徑顯示爲'features/Authentication/administrator_logs_in.feature'(不同的大寫字母)。我在MS Windows上,所以他們看起來與我的系統一樣,但顯然不是混帳。錯誤報告中的版本是正確的。

我試着解決它使用git來重命名文件,但由於目標文件已經存在,所以我不得不使用git將文件移動到一個新的位置,提交,然後使用git將它們移回(與正確的大寫)。