Using GitHub CLI: A simple method I have seen is useing gh auth switch you can switch git profiles with this, just login into your GitHub account with gh auth login.
gh auth switch
gh auth login