This helped me solve this issue in a mac:
- Open the Hosted Repositories window by clicking View > Show Hosted Repositories or Command + Shift + H.
- Click Edit Accounts
- Double-click on your account
- Click Set Password
This helped me solve this issue in a mac: