How to fix git path after MacOS Sierra update?

I have just upgraded from OS X 10.11 “El Capitan” to 10.12: “Sierra”, and when I open intellijIdea, I get the following error:

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

Git Baby is a git and github fan, let's start git clone.