git config –global user.name xxxxx
git config –global user.email xxxx@xxx.xxx
sudo apt install gh
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: xxxx-XXXX
– Press Enter to open github.com in your browser…
Gtk-Message: 15:41:38.535: Failed to load module “canberra-gtk-module”
Gtk-Message: 15:41:38.537: Failed to load module “canberra-gtk-module”
[0425/154138.595469:WARNING:chrome/app/chrome_main_linux.cc:84] Read channel stable from /app/extra/CHROME_VERSION_EXTRA
[0425/154138.737439:WARNING:chrome/app/chrome_main_linux.cc:84] Read channel stable from /app/extra/CHROME_VERSION_EXTRA
Opening in existing browser session.
✓ Authentication complete. Press Enter to continue…
– gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as xxxxxx
