Skip to content

remote: Write access to repository not granted. #46398

Discussion options

You must be logged in to vote

Right, you won't be able to push anything until things are configured to use your token instead of your old password which is likely what's happening. That's why I had asked if when you originally cloned the repository you entered your token like this here?

You can update your cached credentials to your token by following this doc. There's a link in there about changing to the Git Credential Manager if you prefer something like that.

You can use the GitHub CLI as well. Running gh auth login will let you setup your credentials using your token instead of your old password.

Give these approaches a shot and let me know how it goes.

Replies: 14 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@tristanrose
Comment options

@chris-c-thomas
Comment options

@sayedsadat98
Comment options

@Sadiq-Rashid
Comment options

Answer selected by tristanrose
Comment options

You must be logged in to vote
4 replies
@chris-c-thomas
Comment options

@kitfbgh
Comment options

@kesselly4099
Comment options

@Chaisenberg9k
Comment options

Comment options

You must be logged in to vote
1 reply
@indian0ch
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Duhduh420
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@serban-seeq
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Product Feedback