0
Error:
/usr/local/bin/brew: line 1: syntax error near unexpected token '<<<'
/usr/local/bin/brew: line 1: '<<<<<<< 61ffa47gd9dc179ddff792db1dc6f55464f6c16b'

I tried removing and adding closing triangular brackets but neither one worked for me.

I found some similar questions/answers related to this where unexpected token was ')', but they didn't help.

bfontaine
  • 18,169
  • 13
  • 73
  • 107
Vikrant
  • 1
  • 1

2 Answers2

0

This is an unresolved git conflict. Run the following command and you’ll be fine:

cd /usr/local && git fetch && git reset --hard origin/master
bfontaine
  • 18,169
  • 13
  • 73
  • 107
-1

Seems to be similar issue than Homebrew on Mac OS X (El Capitan): syntax error near unexpected token `{

dos2unix /usr/local/bin/brew

Community
  • 1
  • 1
sebastienvg
  • 303
  • 1
  • 7
  • I downvoted because it has nothing to do with the other issue and running `dos2unix` won’t fix anything here. – bfontaine Aug 13 '16 at 08:28