2
我的.gitignore文件有以下行混帳:如何恢復文件,該文件是在的.gitignore [致命:空提交一套傳遞]
vendor/
我已經修改了供應商的文件夾內的文件。 現在,當我通過執行更新我的包 -
bin/vendors install
- 我看到下面的消息
"Bundle name" has local modifications. Please commit or revert/push them before running this command again.
我意識到,我應該沒有改變成捆東西,我試圖糾正那個錯誤。
當我嘗試通過發出命令來恢復文件:
git revert <path>/<filename>.twig
我收到此錯誤信息
fatal: empty commit set passed
git rm
也不起作用。
如何使我的軟件包安裝?
git checkout path/to/file不起作用 - 我已經試過了。它說:「錯誤:pathspec path/to/file與git已知的任何文件不匹配 而不是刪除整個捆綁目錄我只是刪除那個特定的捆綁包並嘗試 – Amit 2012-02-05 22:25:12
工作,我只刪除了1捆綁。 bin/vendors安裝,然後成功克隆該軟件包。 – Amit 2012-02-05 22:29:50