git push with new personal access token #55852
-
Select Topic AreaQuestion BodyHello, (I am French and I don't know well English sorry) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
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:
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 command:
Replace USERNAME with your GitHub username and TOKEN with your new personal access token. This command will update the remote URL to include the new access token, allowing you to push your Git changes without being prompted for credentials. After executing either of these commands, try pushing your Git changes again, and it should use the new personal access token for authentication. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Hey everyone! 👋 I'm Atabul, a B.Tech CSE student from India 🇮🇳 |
Beta Was this translation helpful? Give feedback.
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=httpsThis 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 …