ℹ Starting GitHub authentication...Please visit: https://github.com/login/deviceEnter code: ABCD-1234Waiting for authorization...✓ Logged in as username (user@email.com)
You can also authenticate using environment variables:
Variable
Description
GITHUB_TOKEN
GitHub personal access token
GH_TOKEN
Alternative (GitHub CLI compatible)
WIT_GITHUB_CLIENT_ID
Custom OAuth App client ID
# Using a personal access tokenexport GITHUB_TOKEN=ghp_your_token_here# Now wit commands work without loginwit clone https://github.com/user/private-repo.gitwit push origin main
When you authenticate with GitHub, wit automatically uses your GitHub profile for commit author information:
# Before: commits show as "Anonymous"wit commit -m "message" # Author: Anonymous <anonymous@example.com># After wit github login: uses your GitHub infowit commit -m "message" # Author: Your Name <your@email.com>