None of the above solutions worked for me. I revoked the access by deletion of the token I had generated the machine.
I logged into GitHub webpage went to:
click picture > settings > Developer settings > Personal access tokens > delete the token for that particular machine