Bàsic

Personal Access Toke

Generate a Fine-Grained Personal Access Token (PAT)

GitHub has moved away from password authentication for Git operations, so you must use a personal access token (PAT) instead.

Navigate to GitHub Settings

  1. Go to GitHub Personal Access Tokens.
  2. Click on “Generate new token (fine-grained)”.

Configure Token Permissions

  • Repository Access: Select the specific repository you want to push to.
  • Permissions: Under “Repository permissions,” set “Read and Write” access for “Contents.”
  • Expiration: Choose an expiration date or select “No expiration” (not recommended for security reasons).
  • Click “Generate token” and copy the token immediately (you won’t see it again).

TODO