If you're using Git on Windows, follow these steps:
Open the Start Menu and search for Credential Manager, then open it.
Select the Windows Credentials tab.
Scroll down and look for entries related to GitHub.
If there are multiple entries with different usernames, identify the one you need to remove.
Click on the entry to expand it, then select Remove.
Confirm the removal when prompted.