原始报错如图
Push failed unable to read askpass response from 'C:\Users\admin\AppData\Local\JetBrains\IntelliJIdea2023.2\tmp\intellij-git-askpass-local.sh' bash: line 1: /dev/tty: No such device or address failed to execute prompt script (exit code 1) could not read Username for 'https://gitlab---------': No such file or directory
解决方案:勾选 Use credential helper
另,还有一个小伙伴遇到了这个问题,他的解决方案是重新安装最新版 git,反正也解决了 emmm