PyCharm OSX – Git – path to Git executable is not valid

Error: Can’t start Git: /usr/bin/git Probably the path to Git executable is not valid.
RUN:


1
sudo git --version

on command line. It will ask you to agree to the git xcode license agreement, once done everything will work as before.