Skip to content
Discussion options

You must be logged in to vote

Hi and welcome to GitHub 👋

To generate a GitHub Personal Access Token, follow these steps:

Click on your profile picture (top right) → Settings

Go to Developer settings

Select Personal access tokens → Tokens (classic)

Click Generate new token

Add a note, choose an expiration date, and select the required scopes (for beginners, repo is usually enough)

Generate the token and make sure to copy it — you won’t be able to see it again.

You can use the token instead of your password when:

Authenticating with Git via HTTPS

Accessing the GitHub API

Using CI/CD tools or integrations that require GitHub access

Never share your token publicly, and revoke it if it gets exposed.

Hope this helps 👍

Replies: 1 comment 1 reply

Comment options

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

Answer selected by hazemahmedibrahim772
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage
2 participants