Updating GitHub Authentication Using Token on macOS (Replacing Password)

With GitHub’s recent changes, passwords are no longer allowed for authentication when performing actions like check-in or check-out. Here’s how you can update your authentication method to use a personal access token instead of a password on macOS.

Step 1: Generate a Personal Access Token (PAT)

  1. Go to your GitHub account and navigate to Settings.
  2. Under Developer settings, select Personal access tokens.
  3. Click on Generate new token.
  4. Select the scopes or permissions you need for your token, such as repo access.
  5. Click Generate token and copy the token somewhere safe (you won’t be able to see it again).

Step 2: Update Git Credentials on macOS

  1. Open Terminal.
  2. Use the following command to clear the old GitHub credentials:
  3. When prompted for your GitHub credentials during the next git push or pull, enter your username and paste your new personal access token in place of your password.

Step 3: Store Token in macOS Keychain

If you want to avoid entering the token repeatedly, macOS will offer to store it in your keychain after you enter it once during authentication.

That’s it! Your GitHub authentication should now be updated to use a personal access token on macOS.

Leave a Reply

Your email address will not be published. Required fields are marked *