mxcl/homebrew — Issue #8066: brew 'fix' command
Author: secoif
Created: 2011-10-11 11:49:50+00:00
State: open

I've had to do some git surgery on brew a couple of time in the last few weeks (for various unknown reasons), perhaps it'd be a valuable addition to add something like a 'brew unfuck' command (you could call it something else I guess :D) that executes something like:

```bash
cd `brew --prefix`
git stash
git reset --hard FETCH_HEAD
git clean -f
cd -
```

perhaps with some warning about losing any customisations into the git stash.