sudo apt update sudo apt install git -y Verify installation:
gh auth setup-git gh repo clone octocat/Hello-World cd Hello-World git status Summary table | Tool | Install command(s) | Verify | |------|-------------------|--------| | Git | sudo apt install git | git --version | | GitHub CLI | curl + apt (official) or snap install gh | gh --version | Troubleshooting git: command not found Re-run: sudo apt install git github ubuntu install
when pushing to GitHub Run gh auth setup-git or manually add your SSH key. sudo apt update sudo apt install git -y
Check that you added the repository correctly. Run ls /etc/apt/sources.list.d/github-cli.list github ubuntu install