Skip to content
Discussion options

You must be logged in to vote

Generate a Personal Access Token:

Go to your GitHub account settings by clicking on your profile picture in the upper right corner and selecting "Settings."

In the left sidebar, click on "Developer settings."

Click on "Personal access tokens."

Click the "Generate token" button.

Provide a token description (e.g., "Git operations").

Choose the scopes/permissions you need. For pushing code to repositories, the "repo" scope is necessary.

Click "Generate token."

Copy the generated token to your clipboard. Be careful with it, as you won't be able to see it again. If you lose it, you'll need to regenerate a new token.

Update Git Credentials:

Open your terminal.

Use the following command…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by tuves
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Git and Code Discussions related to version control and coding practices New To GitHub 👋 New To GitHub
2 participants