git --version # Example output: git version 2.34.1 Link Git to your GitHub account locally:
git config --list You have three good options. Choose one . Option A: GitHub CLI (recommended) Install GitHub CLI: github in ubuntu
git config --global user.name "Your GitHub Username" git config --global user.email "your-email@example.com" Use the same email attached to your GitHub account. Check your configuration: git --version # Example output: git version 2