Open FelixGV opened 5 years ago
Upgrading git via Brew will also fix this (brew install git
; launch new terminal session), if you're allowed to do this on your machine. Literally just resolved this same issue on Mojave.
@FelixGV want to add a note to the wiki? :)
Thanks! I also needed to set the LC_ALL
envvar for sed on a fresh Mojave.
eg.
# .bash_profile
LC_ALL=C
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
I was following the helpful instructions provided here:
https://github.com/bobthecow/git-flow-completion/issues/46#issuecomment-332724240
However, afterwards, I got the following appearing in my shell:
I then discovered on StackExchange that it was because the master version of
git-completion.bash
I had downloaded was too recent for my built-in version of git:https://apple.stackexchange.com/questions/327817/git-completion-bash-producing-error-on-macos-sierra-10-12-6
Solution
I found out what my version of git was:
And then I downloaded the corresponding
git-completion.bash
version, e.g.:It works for me now (: