File -> Settings -> Version Control -> Git -> Click Test to check if the test succeeds, if not, you need to adjust the path that git includes.
You may also need to modify cmd.exe . Go to the "Settings" section, find the terminal and specify the path "C: \ Program Files (x86) \ Git \ bin \ sh.exe" --login -i
source share