{"issue":{"created_at":"2011-10-11T11:49:50Z","user":{"login":"secoif","id":43438,"url":"https://api.github.com/users/secoif","gravatar_id":"f0deca4576206207a882928e7ff32ddb","avatar_url":"https://secure.gravatar.com/avatar/f0deca4576206207a882928e7ff32ddb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"brew 'fix' command","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-15T22:23:41Z","id":1873940,"html_url":"https://github.com/mxcl/homebrew/issues/8066","closed_at":"2011-12-15T22:23:41Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"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:\r\n\r\n```bash\r\ncd `brew --prefix`\r\ngit stash\r\ngit reset --hard FETCH_HEAD\r\ngit clean -f\r\ncd -\r\n```\r\n\r\nperhaps with some warning about losing any customisations into the git stash.\r\n\r\n","number":8066,"url":"https://api.github.com/repos/mxcl/homebrew/issues/8066","comments":3,"assignee":null},"comment":{"created_at":"2011-12-15T22:23:41Z","user":{"login":"jacknagel","id":568243,"url":"https://api.github.com/users/jacknagel","gravatar_id":"68602fa96bdda4c677ece48ab42b6eb2","avatar_url":"https://secure.gravatar.com/avatar/68602fa96bdda4c677ece48ab42b6eb2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-15T22:23:41Z","id":3170140,"body":"Closing due to lack of interest from the maintainers; this is a \"patches welcome\" type idea.","url":"https://api.github.com/repos/mxcl/homebrew/issues/comments/3170140"},"action":"created"}