To fix Git password after you have changed it in GitHub.com
on macOS, you can use
git config --global credential.helper osxkeychain
Above command will show no output. But a username and password prompt will appear with your next Git action (pull, clone, push, etc.).
For Windows, it’s the same command with a different argument:
git config --global credential.helper wincred