Skip to content
Discussion options

You must be logged in to vote

Hello @Kravatox

If you have generated a new personal access token for GitHub and want to update it in your terminal to push your Git changes, you can update the stored credentials using the following command:

git credential-osxkeychain erase host=github.com protocol=https

This command will remove the existing credentials stored in the Keychain Access on macOS. After running this command, the next time you push your Git changes, it should prompt you for the new username (your GitHub username) and password (the new personal access token).

Alternatively, you can also update the remote URL of your Git repository to include the new personal access token directly. To do this, use the following …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Kishlay-notabot
Comment options

Answer selected by Kravatox
Comment options

You must be logged in to vote
0 replies
Comment options

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

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 Question Ask and answer questions about GitHub features and usage
5 participants