我在我的Django网站上修改了我的Procfile文件。第一次,我没有大写Procfile,所以我使用git rm procfile -f删除了旧文件,然后输入git add Procfile,但我得到了这个错误消息:
fatal: pathspec 'Procfile' did not match any files如何将Procfile添加回我的项目?我意识到这对我来说是一个愚蠢的错误,但我想学习如何修复它,并继续这个项目。谢谢。
发布于 2015-02-21 07:33:56
您说您使用的是Ubuntu,所以我假设您的文件系统是区分大小写的。
如何恢复Procfile并重命名它
git checkout HEAD Procfile # undo deleting the Procfile
git mv Procfile procfile # rename the file to lowercase and stage it
git commit # commit your changes解释
git rm procfile -f将从您的文件系统中删除procfile并暂存其删除(尽管更改未提交)。git add Procfile尝试将名为Procfile的文件添加到临时区域,但该文件似乎不存在。
https://stackoverflow.com/questions/28609286
复制相似问题