On linux how do I change the PAT in the git credential.helper?

Viewed 14

On linux how do I change the Personal Access Token (PAT) in the git credential-helper?

! [remote rejected]   zippy.v2 -> zippy.v2 (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope)
error: failed to push some refs to 'https://github.com/zippy-king/super-project.git'

I need a way of resetting the credentials in the store, so I can enter a Personal Access Token (PAT) with all the needed permissions.

1 Answers

This worked for me - it clears the store, when you do "git push" or some action you are asked to enter again the user and password.

rm -rf ~/.git-credentials
Related