Skip to content

Instantly share code, notes, and snippets.

@skwid138
Last active May 3, 2021 17:30
Show Gist options
  • Save skwid138/488a18d2685aaae3a583ce3d38e5f335 to your computer and use it in GitHub Desktop.
Save skwid138/488a18d2685aaae3a583ce3d38e5f335 to your computer and use it in GitHub Desktop.

Update and/or Upgrade fail with various git errors

Running brew upgrade or brew update results in some sort of git error

  • Merge conflict
  • Unfinished rebase

Use brew update-reset instead which I beleive downloads all the updates/upgrades fresh

Use brew doctor to get tips on what can be done to improve your local brew setup

Use brew cleanup to remove old or unused files and directories

Sample Error

 brew upgrade
Updating Homebrew...
fatal: It seems that there is already a rebase-apply directory, and
I wonder if you are in the middle of another rebase.  If that is the
case, please try
	git rebase (--continue | --abort | --skip)
If that is not the case, please
	rm -fr ".git/rebase-apply"
and run me again.  I am stopping in case you still have something
valuable there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment