| Tool | Version |
|---|---|
| Git | 2.55.0 |
GitHub CLI (gh) |
2.97.0 |
sudo dnf install git gh~/.gitconfig:
[user]
name = raioviajante
email = 195070286+RaioViajante@users.noreply.github.com
[init]
defaultBranch = main
[pull]
rebase = false
[fetch]
prune = trueThe @users.noreply.github.com address keeps the real email out of commit
metadata.
-
Auth method: SSH (not HTTPS tokens).
-
Dedicated key:
~/.ssh/id_ed25519_github(+.pub), used only for GitHub. -
~/.ssh/config:Host github.com HostName github.com User git IdentityFile ~/.ssh/id_ed25519_github IdentitiesOnly yes
Setup:
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_github -C "raioviajante github"
gh auth login --git-protocol ssh --hostname github.com # upload the key
ssh -T git@github.com # expect a success banner
gh auth statusPrivate keys never leave the machine and are not committed (.gitignore blocks
id_ed25519*).
git remote -v
# origin git@github.com:RaioViajante/workstation-setup.git (fetch/push)Default branch main, non-rebasing pulls, automatic prune on fetch.