簡體   English   中英

Symfony Bin /供應商本地修改

[英]Symfony bin/vendors local modifications

我試圖在不預先安裝供應商的情況下安裝新的Symfony項目。 我正在運行Windows,並且使用了Symfony食譜中的以下指南:

如何在git中創建和存儲Symfony2項目

我對Git和Symfony都是新手。 當我運行bin / vendors腳本時,我最終遇到了這個問題:

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上所掌握的有限知識來解決),使用本指南處理行尾 ,最終查爾斯·貝利(Charles Baily)對“嘗試使用git filter-branch修復行尾,但具有沒有運氣

我認為我做的不對。 我從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

有人對我做錯了什么以及如何解決這個問題有任何線索嗎?

這是解決問題的方法:

  1. 進入monolog目錄

    cd供應商/獨白

  2. 了解您所做的更改(可選步驟)

    git diff

  3. 取消修改

    git checkout。

如果您的問題是eol被自動修改,則

git config --global core.autocrlf false

將是一個更好的配置,比其他任何git操作都要好。
優缺點請參見“ git autocrlf設置的權威性建議 ”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM