Recently, the git function on IDEA has been used to commit but cannot push and pull. The test found that the reason was Could not read from remote repository, and a solution was found on Stack Overflow.
In Settings->Version Control->Git, set the SSH executable to Native, as shown in the figure, the red box is the place to be modified.