git config ssh protocol code example
Example 1: git use ssh instead of https
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
Example 2: git config ssh protocol
gh config set -h github.com git_protocol ssh # The new GitHub CLI