Skip to content

Instantly share code, notes, and snippets.

@rafaelgotts
Created April 12, 2017 13:54
Show Gist options
  • Select an option

  • Save rafaelgotts/ce68469b19a61c57c13c3da337b19d13 to your computer and use it in GitHub Desktop.

Select an option

Save rafaelgotts/ce68469b19a61c57c13c3da337b19d13 to your computer and use it in GitHub Desktop.
Restore a broken branch on brew

While trying to install a MSSQL client for terminal on Mac OSX, i found sqsh, but here starts my problems:

How sqsh don't have a brew formula, only two pull requests i think: Why not install trought git PR

After do this, i tried to use sqsh without success e giveup. But not uninstall then on that time.

Someday, when i try to update my brew problem on tap_migrations.json was showed.

Solving the problem

go to brew repo folder cd $(brew --repo) and then find the directory of the tap_migrations with problem. In my case was /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

then: git checkout origin/master that will show you are 'detached HEAD', but is ok. after run these commands: git branch -D master git fetch origin master git checkout master

And my brew update has returned to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment