我试图在没有供应商预装的情况下安装新的Symfony项目。我运行Windows,我已经使用来自Symfony的食谱以下指南:Symfony bin /供应商本地修改
How to Create and store a Symfony2 Project in git
我是相当新的都Git和Symfony的。当我运行的bin /厂商剧本我终于碰上这样的:
Installing/Updating monolog
M src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
M src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
"monolog" has local modifications. Please revert or commit/push them before running this command again.
我运行2.0.15。我已经尝试过(利用我对Git,cmd和Symfony的有限知识)来解决这个问题,使用本指南Dealing with line endings并最终这Charles Baily's answer to 'Trying to fix line-endings with git filter-branch, but having no luck'。
虽然我不认为自己做得对。我逃离我的CMD下面几行:
git config --global core.autocrlf true
#Nothing appears, just a new line
git rm --cached -r .
#Alot of files appear
git reset --hard
#HEAD is now at xxxxx initial commit
git add .
#According to the first link and Charles Baily's answer there should appear alot of files, but none do.
git commit -m "message"
#Nothing to commit
没有任何人有任何线索什么,我做错了,如何解决这一问题?
'cd' into * vendor/monolog *并执行'git reset --hard master'。那样有用吗? –
我的意思是'origin/master'。 –
这没有奏效。还是)感谢你的建议! – Esben