Last active
October 23, 2025 12:49
-
-
Save gerwld/6bf1182fa36078c37b6d62c09ccdccaf to your computer and use it in GitHub Desktop.
Speedrun Auth Github on a Mac CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) - Copypaste all as one line: | |
| git config --global user.email "[email protected]" && | |
| git config --global user.name "your_username" && | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install --force-bottle gh && | |
| ssh-keygen -t rsa -b 4096 -C "[email protected]" && | |
| ssh-add ~/.ssh/id_rsa && | |
| gh auth login | |
| 1.1) Click Enter 6 times | |
| 1.2) Copy code, Click Enter > Continue, Paste, Continue, Authorize Github | |
| 2) - Copypaste: | |
| pbcopy < ~/.ssh/id_rsa.pub | |
| 2.1) On Github: Go to Settings > SSH and GPG keys > New SSH Key > Paste, Add any name, Save | |
| PROFIT | |
| 3) - Optional: Install Omz | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment