---
title: "Brew update problem"
author: "夜鸣猪"
date: "2013-03-22T05:48:03Z"
tags: []
categories: ["编程语言"]
slug: "brew-update-problem"
draft: false
lastmod: "2013-03-22T05:48:03Z"
id: 1833830
url: "https://hlee.iteye.com/blog/1833830"
---

> 
> MBA:~ fortin$ brew update
> error: Your local changes to the following files would be overwritten by merge:
>     expect.rb
>     libiconv.rb
>     ncurses.rb
>     openldap.rb
>     openssh.rb
>     perl.rb
>     tcl.rb
>     tk.rb
> Please, commit your changes or stash them before you can merge.
> Aborting
> Error: Failed to update tap: homebrew/dupes
> Updated Homebrew from 008b09ca to 7dd2e5f4.
> ==> Updated Formula
> apollo      drush       libxmlsec1  vorbis-tools    z
> bigloo      icarus-verilog  scm-manager x264
> MBA:~ fortin$ ls
> Cellar          hidden          sbin
> Library         hw_mobile_userdata  share
> README.md       include         texlive
> bin         lib         var
> etc         man
> 




```java


cd /usr/local/Library/Taps/homebrew-dupes && git reset --hard

cd /usr/local/Library && git stash && git clean -f

chown -R $(whoami) /usr/local/.git

```