WebStorm推送至GitHub失败提示仓库不存在,求WebStorm内解决办法
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) orWebStorm→Preferences(Mac) - Navigate to
Version Control→Git→SSH executable - Switch from
Built-intoNative(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/configon Mac/Linux,C:\Users\<YourName>\.ssh\configon 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
Testto 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

