You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WebStorm推送至GitHub失败提示仓库不存在,求WebStorm内解决办法

Fixing WebStorm's "Cannot Find GitHub Repository" Push Issue

Hey, I’ve dealt with this exact problem before when GitHub phased out older encryption algorithms—even updating to WebStorm 2018.1.1 might not fix the default configs right away. Here are all the fixes you can apply directly within WebStorm (or its linked system settings):

1. Update JVM Settings for HTTPS Push (Most Common Fix)

If you’re using HTTPS to connect to GitHub, WebStorm’s underlying JVM might still be using outdated TLS protocols that GitHub no longer accepts:

  • Go to the top menu: Help → Edit Custom VM Options
  • At the end of the opened file, add these lines:
    -Dhttps.protocols=TLSv1.2,TLSv1.3
    -Djdk.tls.client.protocols=TLSv1.2,TLSv1.3
    
  • Save the file, restart WebStorm, and try pushing again.

2. Fix SSH Configuration for SSH-Based Push

If you use SSH keys to authenticate, the built-in SSH client in WebStorm 2018.1.1 might not support GitHub’s required encryption ciphers:

  • Open WebStorm’s settings: File → Settings (Windows/Linux) or WebStorm → Preferences (Mac)
  • Navigate to Version Control → Git → SSH executable
  • Switch from Built-in to Native (this uses your system’s SSH client, which is likely newer and compatible)
  • If that still fails, edit your system’s SSH config file (~/.ssh/config on Mac/Linux, C:\Users\<YourName>\.ssh\config on Windows) and add:
    Host github.com
      KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
      Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
    
  • Save the config, restart WebStorm, and retry your push.

3. Force WebStorm to Use a Newer Git Version

WebStorm 2018.1.1 comes with an older Git version that might lack support for GitHub’s updated security standards:

  • Install the latest stable Git on your system if you haven’t already
  • Back in WebStorm settings, go to Version Control → Git
  • Under Path to Git executable, browse to the location of your newly installed Git (instead of using the built-in one)
  • Click Test to confirm the connection works, then restart the IDE and push.

Quick Workaround If All Else Fails

If you need to push immediately, use WebStorm’s built-in terminal and run the raw Git command:

git push origin <your-branch-name>

This bypasses the IDE’s GUI layer and verifies if the issue is specific to WebStorm’s configuration or something else.

内容的提问来源于stack exchange,提问作者iamcootis

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 07:50:26