I faced this error after I changed the github account password, and I wanted to push some changes to github via git push. The error appeared. The error suggested that email or password is incorrect. Then I tried again, and a different error shown, the new error suggested that I do not have a sufficient permissions / authority to push to this github repository.
I knew the error cause ! I changed the password, so I need to change the password in the global config on my macbook ( ~/.gitconfig ).
After I changed the password in global config on my machine, it worked correctly as you can see in the video.