How to remove github credentials under Windows 10 & 11 platforms

Pushing code to a personal repository always prompts a 403 error:

fatal: unable to access ‘https://github.com/xxx/xxx.git/’: The requested URL returned error: 403

Online search, all about how to delete credentials in mac or linux method, in windows does not apply at all, checked a lot of information, finally found the following method:

Press Win + R, type control keymgr.dll and enter to open the credential manager;

github2

Under the "Windows Credentials" tab, find all entries that contain github.com (usually of the "normal credentials" type);

Select these entries and click "Delete" to clear the old cached credentials.


How to Delete GitHub Credentials on Windows 10 & 11: A Checklist Before You Begin

When creating technical tutorials, the biggest pitfall is copying commands verbatim while ignoring differences in the environment. Different system versions, web servers, plugin combinations, and permission settings can all affect the final outcome. Before proceeding, it’s recommended that you document your current configuration and, if necessary, create a snapshot or backup. That way, even if you make a mistake during the process, you can quickly roll back the changes.

We recommend confirming the following before proceeding

  • System and Software Versions:Verify the versions of Windows, Debian, Nginx, Apache, WordPress, or related tools.
  • Permissions:When dealing with credentials, certificates, or configuration files, first verify that the current user has sufficient permissions.
  • Backup:Before modifying a configuration file, make a copy of the original file first. For WordPress sites, it’s also recommended to back up the database.
  • Test Method:Validate your changes after each step; don't wait until you've finished making all the changes to troubleshoot.

Troubleshooting Approach

When you encounter an error, first determine at which layer it occurred: the browser, DNS, server, application, plugin, or permissions. Breaking the problem down into smaller parts is more effective than repeatedly searching through an entire error message. For issues involving WordPress, Nginx, certificates, and proxies, logs are usually more reliable than front-end pages.

If the paths or menus in this tutorial differ from those in your environment, refer to your system’s current display first, and then use the keywords to locate the corresponding features. This is especially true for the Windows Control Panel, the WordPress plugin menu, and cloud service consoles, as their access points are frequently updated with new versions.

Recommendations for Follow-up Maintenance

Completing a fix does not mean the problem is permanently resolved. We recommend documenting key commands, modified files, modification times, and verification results. These records can save a significant amount of troubleshooting time when you later migrate servers, upgrade plugins, or change themes.

Related Content

Recommendations for Updates and Reviews

We recommend reviewing this content periodically. Tool access points, platform rules, browser menus, account risk controls, and terms of service are all subject to change. When reviewing, focus on three key points: whether the original method is still viable, whether a simpler new solution has emerged, and whether any new risk warnings need to be added.

If this is your first time performing this operation, we recommend testing it first on a test account or in a low-risk environment before migrating to the production environment. That way, even if the steps aren’t applicable, they won’t affect your main account, main site, or business data.

General Troubleshooting Steps for Technical Issues

  1. First, confirm whether the issue can be reliably reproduced; do not draw conclusions based on a single instance of the problem.
  2. Record the current version, path, account permissions, and complete error details.
  3. Change only one variable at a time, then immediately verify the results to avoid mixing multiple changes together.
  4. If a production site is involved, back it up before proceeding. This is especially true for issues related to WordPress, Nginx, certificates, and caching.

Many problems that seem complicated are often ultimately caused by caching, permissions, paths, or version differences. Troubleshooting layer by layer is more reliable than repeatedly copying commands.

en_USEnglish