I tried to remove git annex and it seems to have completely broken my git. Anytime I try to clone it says:
-bash: /Applications/git-annex.app/Contents/MacOS/git: No such file or directory
How do I fix?
I tried to remove git annex and it seems to have completely broken my git. Anytime I try to clone it says:
-bash: /Applications/git-annex.app/Contents/MacOS/git: No such file or directory
How do I fix?
git-annex
for mac comes with a bundled version of git usually located at/Applications/git-annex.app/Contents/MacOS/git
. It looks like some application you are using found that location of git and decided to use it. When you deleted the git-annex.app directory your app could no longer find git there. Are you getting this error message from the Github Desktop app?Most likely you just need to install a standalone version of git (if you have never done that) from https://git-scm.com/ or Homebrew if you are into that, or if you use Github Desktop just go to
Github Desktop > Install Command Line Tool…
. You could also check to make sure you don't have some hardcoded alias for git setup in~/.bash_profile
, but that seems unlikely.