SORU
25 Temmuz 2013, PERŞEMBE


Güncelleme başarısız Homebrew:; Lütfen, yaptığınız değişiklikleri kaydetme veya birleştirme" önce onları saklamak quot&;

Ben kullanıyorum:

brew update

Ve bir hata alıyorum:

error: Your local changes to the following files would be overwritten by merge:
    samtools.rb
Please, commit your changes or stash them before you can merge.
Aborting

Bu bilinen bir hata olduğu ortaya çıktı. Aslında Homebrew wiki belirtilen:

After running brew update, you receive a git error warning about untracked files or local changes that would be overwritten by a checkout or merge, followed by a list of files inside your Homebrew installation.

This is caused by an old bug in in the update code that has long since been fixed. However, the nature of the bug requires that you do the following:

cd $(brew --repository)
git reset --hard FETCH_HEAD

If brew doctor still complains about uncommitted modifications, also run this command:

cd $(brew --repository)/Library
git clean -fd

Bu talimatları takip ettim ve hala aynı hata görüyorum. Yanlış olan ne?

CEVAP
25 Temmuz 2013, PERŞEMBE


Sorunu kendim çözmek mümkün.

Bana" bu dosya. göstermedi "gıt durumu çalışıyor neye borçluyuz

Ortak çözüm yerine:

cd $(brew --repository)
git reset --hard FETCH_HEAD

Yapmak zorundaydım:

cd [directory of the file in question]
git reset --hard FETCH_HEAD

Sorun çözüldü.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • DudeFromUkraine

    DudeFromUkra

    7 Ocak 2008
  • How It Should Have Ended

    How It Shoul

    5 Mart 2007
  • JTechTalk

    JTechTalk

    11 Temmuz 2010