Authenticates gh for github.com, --git-protocol ssh makes git operations use SSH URLs, and --web completes the flow in the browser. The web flow avoids pasting tokens into the terminal. Log out anytime with gh auth logout.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.