I am trying to Push on Git. I successfully changed my username & email by using
git config --global user.email "demo@gmail.com"
git config --global user.name "demo"
But When Pushing to Git, It is giving me error remote: Permission to username denied to perviously set username. Unable to access.
Can anyone help me to solve this error?