Authentication failed by changing user name of github → commit → push during development Somme common reasons include error

I got an error on Github Deksop and couldn't push, so merge it on github.com (chrome)

Authentication failed Somme common reasons include error when trying to push the same for master

Committing with the user name before and after the change
For some reason, the names of the committed users are all the users before the name change.

I returned the username but the error did not go away
When I looked it up, I was told that I should do git reset --hard, but I've committed quite a bit, so I'm looking for another way.

Professor please

  • Answer # 1

    Clear the authentication information once

    Command +, (ne) on Github Desktop
    Press to sign out

    Log in with your current github account

    Made of