If you are using two GitHub / Bitbucket Account in single system. Then you will get 403 error while pushing your code to your online repository.

Go to Setting.

Credential Manager.

Windows Credential.

Generic Credential.

Edit your GitHub or Bitbucket Details or Remove and Add new details.