There are several solutions:
1. If the original git used in sorcetree is embedded git, you can try to switch git to git of the system (if Git is installed in the system, you can install it yourself if not)
2. Currently, sourcetree uses git of the system, and upgrades git of the system to the latest version
I’m the second case
The GIT of the current sourcetree can be viewed in the following ways, and the grayed one is the current one