当我运行composer install --prefer-source
或尝试更新这一个特定束(他人相处融洽)我得到这个错误:作曲家安装--prefer源抛出错误
Failed to download some-bundle from source: Failed to execute git checkout 'xx' -- && git reset --hard 'xx' --
error: The following untracked working tree files would be overwritten by checkout:
...
[ list of all files in repo on a branch that interests me ]
...
Please move or remove them before you can switch branches.
Aborting
我假设我就搞砸了什么捆绑存储库,但不知道是什么。
- 我克隆全新的项目库
- 我试试“作曲家安装--prefer来源”,并仍然得到这个错误。
有趣的是 - 错误只发生在MAC上的docker上。在其他与Linux的电脑它工作正常。
什么版本的作曲家?其他人报告了相同的问题,并且作曲家的更新将其排除。值得一试? “对于遇到这个问题的其他人尝试更新作曲家--prefer-dist”。其他建议在GIT Bash中运行,而不是CMD(Windows)。 – Robbie
作曲家版本1.2.1 2016-09-12 11:27:19。 --prefer-dist无法正常工作 - 我无法直接从供应商处发送更改。但我认为这只是MAC上的问题。 – mmmm
解决方案是永远不会*在供应商文件夹内进行修改。这与作曲家,供应商文件夹以及一般适当的开发实践的整个方面直接相反。 – Sammitch