How to Fix Git Push Errors in WebStorm
A quick fix when WebStorm keeps using the wrong GitHub account when pushing to a repository.
Published at
8 Aug 2026
The Problem
I use two different GitHub accounts in WebStorm. Sometimes when I switch between projects and try to push to a repository, Git uses the wrong GitHub account and the push fails.
Changing the account inside WebStorm doesn't always fix it because Windows can still have the old GitHub credentials saved.
The Fix
Open Windows Control Panel and search for Credential Manager which is usually in User Account.
Open Windows Credentials and look for:
git:https://github.com
Remove that credential.
Then go back to WebStorm and try pushing again. Git should ask you to authenticate with your GitHub account again.
Remember This
If WebStorm keeps pushing with the wrong GitHub account, don't waste time changing the account in WebStorm over and over again. Check Windows Credential Manager and remove the saved git:https://github.com credential.