git 和 pycharm 仅适用于命令行

git with pycharm works only from command line

我在 bitbucket 上有一个私人存储库,一些 python 代码,我用 git 从命令行提取的。 然后我将项目导入到 Pycharm 2016.3。 从命令行我可以推拉,但 Pycharm 中的 git 似乎不起作用。我收到如下错误: Fetch failed: Could not read from remote repository. 我正在使用 ssh 身份验证,并且已将我的 .ssh/config 设置为使用正确的私钥解析 bitbucket.org。我还配置了 Pycharm 以使用本机 ssh,而不是内置的。 我卡住了,请帮忙。

我解决了这个问题。问题出在 ssh 密钥上。该键提示输入密码以允许使用。显然 pycharm 无法处理这个问题。我用一个不需要密码的密钥更改了密钥,它非常有效。

我在 PyCharm 中遇到了同样的错误。直接原因是github"permanently removed support for the following weak cryptographic standards"。参见 https://blog.github.com/2018-02-23-weak-cryptographic-standards-removed/

PyCharm 已发布此更改的新补丁。参见 https://blog.jetbrains.com/pycharm/2018/03/pycharm-2016-3-and-later-updated-for-github-compatibility/?fromIDE=