Skip to content

Instantly share code, notes, and snippets.

@gerwld
Last active October 2, 2025 22:04
Show Gist options
  • Save gerwld/6bf1182fa36078c37b6d62c09ccdccaf to your computer and use it in GitHub Desktop.
Save gerwld/6bf1182fa36078c37b6d62c09ccdccaf to your computer and use it in GitHub Desktop.
Speedrun Auth Github on a Mac CLI
0) Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1) Copypaste this entire part:
git config --global user.email "[email protected]"
&& git config --global user.name "name" && brew install gh
2) optional - install omz
> sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
3) Then copypaste:
gh auth login
# Then go to: Github.com > (https) > Press Y >
# Login using web browser > Enter > Copypaste code from the console
4) Copy:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh-add ~/.ssh/id_rsa
pbcopy < ~/.ssh/id_rsa.pub
4) In Github:
settings > SSH and GPG Keys > add new ssh > paste, save, done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment