Reputation: 3972
I am trying to fork the git repo using hub
hub fork --remote-name=origin
Error creating fork: Forbidden (HTTP 403)
Resource protected by organization SAML enforcement. You must grant your personal token access to this organization.
I would like to re-enter my username and password but I'm not sure if I know how to reset hub fork command.
Any clue.
Upvotes: 2
Views: 814
Reputation: 121
To get hub to ask you for your password again, you can delete the token in ~/.config/hub
.
The easiest way to do this is rm ~/.config/hub
.
Upvotes: 1
Reputation: 1328122
Check first if you have 2FA (two-factor authentication) activated for your account.
Because in that case, hub
or not, you would need a PAT (Personal Access Token) to access your repository when pushing.
Check what "origin
" is for (git remote -v
): if it is an HTTPS URL without the token in it, your credentials might be cached (git config credential.helper)
In both cases, hub
is not directly involved, and would not need to be "ressetted".
Upvotes: 0