1
2
3
4
5
git config --global user.name "Michael Jackson"
git config --global user.email michael.jackson@gmail.com
git config --global core.editor vim
    (pentru windows: git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin")
git config --global init.defaultBranch main

Check settings:
git config --list

SSH auth la github

Generare chei

Verifica cheile existente
ls -al ~/.ssh
Daca exista ceva de genul: id_rsa.pub, id_edcsa.pub, id_ed25519.pub, move on.
Daca nu exista, genereaza o cheie noua:
ssh-keygen -t ed25519 -C "michael.jackson@gmail.com"
enter enter enter
Porneste ssh-agent in background:
$eval "$(ssh-agent -s)"
Agent pid 214
Adauga cheia la ssh-agent:
ssh-add ~/.ssh/id_ed25519

Adauga cheia in GitHub

Copiaza cheia:
cat ~/.ssh/id_ed25519.pub
GitHub -> Profile -> Settings -> Add SSH key

Bam! Testeaza cu:
ssh -T git@github.com