Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean
So I finally got access to my friend's machine, and tried curling the raw script into the correct directory:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o /usr/local/etc/bash_completion.d/git-prompt.sh. It worked! But no one should do this until they're positive that
git is installed via Homebrew (you can verify this; if
which git returns
/usr/local/bin/git and you didn't make that symlink yourself, you're all set.
git links are broken (
brew unlink git then
brew link git ought to fix any problems)
Based on @torek's expertise, I've come to the conclusion that Sublime 3 might have been converting tabs to spaces and breaking the script. The solution is not to open
git-prompt.sh in any text editor, but instead curl it directly into the above directory. This way one can be sure that it is uncorrupted and works as advertised.